Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1305600 / KnownTypesHelper.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using System; using System.IO; using System.Collections.Generic; using System.Reflection; using System.Diagnostics; // These are the non-generated parts of the KnownTypes and TypeIndexer classes #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal static partial class KnownTypes { // Keep Known WCP Types in a private array, accessed through an indexer private static TypeIndexer _typeIndexer = new TypeIndexer((int)KnownElements.MaxElement); internal static TypeIndexer Types { get { return _typeIndexer; } } #if PBTCOMPILER internal static void InitializeKnownTypes(Assembly asmFramework, Assembly asmCore, Assembly asmBase) { _typeIndexer.Initialize(asmFramework, asmCore, asmBase); } #endif } internal partial class TypeIndexer { public TypeIndexer(int size) { _typeTable =new Type[size]; } public System.Type this[int index] { get { Type t = _typeTable[index]; if (t == null) { t = InitializeOneType((KnownElements)index); } _typeTable[index] = t; return t; } } private Type[] _typeTable; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using System; using System.IO; using System.Collections.Generic; using System.Reflection; using System.Diagnostics; // These are the non-generated parts of the KnownTypes and TypeIndexer classes #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal static partial class KnownTypes { // Keep Known WCP Types in a private array, accessed through an indexer private static TypeIndexer _typeIndexer = new TypeIndexer((int)KnownElements.MaxElement); internal static TypeIndexer Types { get { return _typeIndexer; } } #if PBTCOMPILER internal static void InitializeKnownTypes(Assembly asmFramework, Assembly asmCore, Assembly asmBase) { _typeIndexer.Initialize(asmFramework, asmCore, asmBase); } #endif } internal partial class TypeIndexer { public TypeIndexer(int size) { _typeTable =new Type[size]; } public System.Type this[int index] { get { Type t = _typeTable[index]; if (t == null) { t = InitializeOneType((KnownElements)index); } _typeTable[index] = t; return t; } } private Type[] _typeTable; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExportOptions.cs
- RandomDelayQueuedSendsAsyncResult.cs
- CollectionChangeEventArgs.cs
- SystemIcmpV4Statistics.cs
- DBCommand.cs
- WasAdminWrapper.cs
- NullReferenceException.cs
- WorkItem.cs
- CommandDevice.cs
- XmlSigningNodeWriter.cs
- WebPartsPersonalizationAuthorization.cs
- SchemaNames.cs
- ExtensibleClassFactory.cs
- XmlTextAttribute.cs
- WebPartUserCapability.cs
- CultureInfo.cs
- TextTreeDeleteContentUndoUnit.cs
- PrintSystemException.cs
- FrugalList.cs
- OleDbMetaDataFactory.cs
- TextServicesCompartment.cs
- RoutedCommand.cs
- PeerNameRegistration.cs
- propertytag.cs
- DependencyPropertyChangedEventArgs.cs
- TouchesOverProperty.cs
- SelectionGlyph.cs
- Label.cs
- IItemProperties.cs
- PersistencePipeline.cs
- ToolStripScrollButton.cs
- DebugView.cs
- DataBoundControlAdapter.cs
- Array.cs
- SoapCodeExporter.cs
- ClientSideQueueItem.cs
- DocumentApplicationDocumentViewer.cs
- VirtualPathUtility.cs
- recordstatefactory.cs
- WebPartDescription.cs
- SchemaNames.cs
- String.cs
- SmtpFailedRecipientException.cs
- HeaderedItemsControl.cs
- SelectionProcessor.cs
- LoginUtil.cs
- MinMaxParagraphWidth.cs
- ResourceWriter.cs
- ObservableDictionary.cs
- FieldMetadata.cs
- SerialErrors.cs
- UserNamePasswordValidator.cs
- PropertyEmitterBase.cs
- EventsTab.cs
- TableLayoutRowStyleCollection.cs
- WebPartDisplayModeCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- SrgsElementFactoryCompiler.cs
- XmlAnyAttributeAttribute.cs
- StorageTypeMapping.cs
- WebContext.cs
- SmiGettersStream.cs
- DataBoundControl.cs
- WinCategoryAttribute.cs
- CodeMemberMethod.cs
- LineSegment.cs
- DbDataAdapter.cs
- _ProxyRegBlob.cs
- WizardDesigner.cs
- WindowsContainer.cs
- WindowsGraphicsWrapper.cs
- DataGridViewImageCell.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextPattern.cs
- DefaultTraceListener.cs
- ConfigPathUtility.cs
- TemplateParser.cs
- ResourceDescriptionAttribute.cs
- SmiConnection.cs
- InfocardInteractiveChannelInitializer.cs
- ExpressionBuilder.cs
- VectorAnimation.cs
- Input.cs
- ToolboxItem.cs
- StreamingContext.cs
- LinkLabelLinkClickedEvent.cs
- versioninfo.cs
- RangeValueProviderWrapper.cs
- BufferedGraphicsManager.cs
- GeneralTransform.cs
- Compilation.cs
- recordstatefactory.cs
- ValidatingReaderNodeData.cs
- MemberNameValidator.cs
- BreakRecordTable.cs
- XomlCompilerError.cs
- ContainerControl.cs
- _NegoStream.cs
- ConfigXmlComment.cs
- SqlVisitor.cs