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
- NativeMethods.cs
- _NativeSSPI.cs
- UInt16Converter.cs
- ActivationArguments.cs
- EntityDesignerDataSourceView.cs
- Avt.cs
- EncryptedKeyIdentifierClause.cs
- HtmlFormWrapper.cs
- ServiceModelStringsVersion1.cs
- COM2Properties.cs
- SiteMap.cs
- ButtonField.cs
- NamespaceList.cs
- DateTimeFormatInfo.cs
- ResourceExpressionBuilder.cs
- XmlValidatingReader.cs
- ToolBar.cs
- SQLByteStorage.cs
- CatalogPartChrome.cs
- UnicastIPAddressInformationCollection.cs
- SqlException.cs
- ProfessionalColors.cs
- DataGridViewCellStateChangedEventArgs.cs
- StringConverter.cs
- ZipFileInfo.cs
- TargetException.cs
- InstanceDataCollection.cs
- InternalDuplexBindingElement.cs
- GridItemCollection.cs
- FixedSOMLineRanges.cs
- ConnectionProviderAttribute.cs
- MergePropertyDescriptor.cs
- ListControl.cs
- DataGridTextBox.cs
- StringReader.cs
- ProfilePropertyMetadata.cs
- ToolStripOverflow.cs
- EdmToObjectNamespaceMap.cs
- CqlGenerator.cs
- DefaultValueConverter.cs
- UnionCqlBlock.cs
- SEHException.cs
- EndOfStreamException.cs
- DataGridColumnHeaderCollection.cs
- userdatakeys.cs
- ChangesetResponse.cs
- TextRenderingModeValidation.cs
- ColorBlend.cs
- VersionedStreamOwner.cs
- __TransparentProxy.cs
- FieldInfo.cs
- ReturnEventArgs.cs
- Queue.cs
- URLBuilder.cs
- MarshalDirectiveException.cs
- XmlSchemaAnyAttribute.cs
- GridViewRowCollection.cs
- HttpCacheParams.cs
- BamlBinaryReader.cs
- OptionUsage.cs
- WCFServiceClientProxyGenerator.cs
- DoWhile.cs
- SoapFault.cs
- DesignerValidationSummaryAdapter.cs
- ImageIndexConverter.cs
- ServiceModelDictionary.cs
- wgx_exports.cs
- UriExt.cs
- FileDialog_Vista.cs
- RelationshipSet.cs
- BitmapData.cs
- LoadedOrUnloadedOperation.cs
- SchemaInfo.cs
- FacetDescriptionElement.cs
- CodeComment.cs
- ClientUtils.cs
- TraceUtility.cs
- NameHandler.cs
- ActivityValidationServices.cs
- CatalogZoneBase.cs
- MasterPageBuildProvider.cs
- TagPrefixCollection.cs
- BindUriHelper.cs
- XmlRootAttribute.cs
- BinaryUtilClasses.cs
- TableRowCollection.cs
- MsmqProcessProtocolHandler.cs
- SessionParameter.cs
- LinearQuaternionKeyFrame.cs
- DbMetaDataColumnNames.cs
- EncryptedPackage.cs
- ConfigurationErrorsException.cs
- SQLDecimal.cs
- HtmlInputSubmit.cs
- DrawingBrush.cs
- ReflectionUtil.cs
- SiteMapNodeItemEventArgs.cs
- OperationResponse.cs
- DesignObjectWrapper.cs
- ComPlusAuthorization.cs