Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1 / 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
- ListViewItem.cs
- SecureConversationSecurityTokenParameters.cs
- ProviderException.cs
- X509Chain.cs
- WorkBatch.cs
- AssemblyResourceLoader.cs
- SchemaInfo.cs
- DnsEndPoint.cs
- ForeignConstraint.cs
- XslException.cs
- DefaultWorkflowSchedulerService.cs
- XMLDiffLoader.cs
- TemplateXamlTreeBuilder.cs
- DbProviderFactory.cs
- DbInsertCommandTree.cs
- FormsAuthenticationModule.cs
- DataGridViewUtilities.cs
- QilIterator.cs
- UriParserTemplates.cs
- QueryStringParameter.cs
- ScriptControlDescriptor.cs
- Rotation3DKeyFrameCollection.cs
- validation.cs
- CompressEmulationStream.cs
- DesignerInterfaces.cs
- SqlTriggerAttribute.cs
- TabPage.cs
- DesigntimeLicenseContext.cs
- DBPropSet.cs
- Image.cs
- DataContractJsonSerializer.cs
- QueryableFilterRepeater.cs
- TcpServerChannel.cs
- ClassData.cs
- GridViewColumnHeader.cs
- XmlSortKey.cs
- LayoutEditorPart.cs
- EntityContainerEntitySetDefiningQuery.cs
- smtpconnection.cs
- EntityDataSourceUtil.cs
- Vector3dCollection.cs
- TextReturnReader.cs
- XPathAxisIterator.cs
- Vector3DIndependentAnimationStorage.cs
- ConfigXmlAttribute.cs
- RIPEMD160.cs
- DataObject.cs
- ColorDialog.cs
- BufferModeSettings.cs
- PagedDataSource.cs
- Stylus.cs
- ObjectSerializerFactory.cs
- ChannelBinding.cs
- SymDocumentType.cs
- CorrelationTokenTypeConvertor.cs
- XsltInput.cs
- Int32AnimationBase.cs
- DesignerProperties.cs
- TypeBuilder.cs
- StorageComplexTypeMapping.cs
- __Filters.cs
- DataSourceControlBuilder.cs
- Evaluator.cs
- PasswordBox.cs
- SerializationEventsCache.cs
- OleServicesContext.cs
- CompoundFileStreamReference.cs
- Types.cs
- EventDrivenDesigner.cs
- BitmapCodecInfo.cs
- PathFigureCollection.cs
- StateItem.cs
- IResourceProvider.cs
- AssemblyGen.cs
- PartitionResolver.cs
- ListenerHandler.cs
- TypeResolvingOptions.cs
- SequentialUshortCollection.cs
- AllMembershipCondition.cs
- TileBrush.cs
- SchemaEntity.cs
- TileModeValidation.cs
- GlobalizationSection.cs
- CodeDelegateCreateExpression.cs
- WpfKnownTypeInvoker.cs
- ChtmlTextWriter.cs
- KeyedByTypeCollection.cs
- ContextBase.cs
- StringResourceManager.cs
- CodeDesigner.cs
- UnaryExpression.cs
- XmlDataLoader.cs
- DataView.cs
- XmlSchemaRedefine.cs
- DesigntimeLicenseContextSerializer.cs
- BoundPropertyEntry.cs
- ArgIterator.cs
- ConnectionPoolManager.cs
- MouseCaptureWithinProperty.cs
- ActiveXContainer.cs