Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PersonalizationProviderCollection.cs
- XmlTextReaderImplHelpers.cs
- ConfigXmlElement.cs
- ForEachAction.cs
- DictionaryBase.cs
- IriParsingElement.cs
- WebUtil.cs
- TextViewBase.cs
- MetadataPropertyCollection.cs
- UndoManager.cs
- TCEAdapterGenerator.cs
- RectangleConverter.cs
- SaveFileDialog.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CodeGotoStatement.cs
- ElementUtil.cs
- ChannelPoolSettings.cs
- SystemPens.cs
- StringFunctions.cs
- GeneralTransform3DTo2DTo3D.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ExecutionEngineException.cs
- XmlSchemaInferenceException.cs
- Filter.cs
- DataGridViewBindingCompleteEventArgs.cs
- HttpProfileBase.cs
- ComponentEditorForm.cs
- HttpModuleCollection.cs
- WebPartZone.cs
- XMLDiffLoader.cs
- PeerTransportListenAddressConverter.cs
- CodeParameterDeclarationExpression.cs
- PolicyLevel.cs
- DataGridViewImageColumn.cs
- RuntimeConfig.cs
- WebPartDisplayModeEventArgs.cs
- ButtonFieldBase.cs
- DocumentApplicationJournalEntry.cs
- WebPartVerbCollection.cs
- DefaultParameterValueAttribute.cs
- KeyValueInternalCollection.cs
- ConfigurationLocation.cs
- SetMemberBinder.cs
- _NegoStream.cs
- InfoCardKeyedHashAlgorithm.cs
- InternalConfigConfigurationFactory.cs
- PeerApplicationLaunchInfo.cs
- WebPermission.cs
- FolderBrowserDialog.cs
- safex509handles.cs
- DiscoveryEndpointElement.cs
- userdatakeys.cs
- XmlSchemaSimpleContentExtension.cs
- HttpHandlerAction.cs
- MethodBuilder.cs
- RowVisual.cs
- ListViewSortEventArgs.cs
- TrackingConditionCollection.cs
- FixedBufferAttribute.cs
- ColorPalette.cs
- ExpressionBinding.cs
- HijriCalendar.cs
- AmbientValueAttribute.cs
- RelativeSource.cs
- XmlnsCompatibleWithAttribute.cs
- TextModifier.cs
- DataGridViewCellFormattingEventArgs.cs
- VarInfo.cs
- GroupItem.cs
- Wizard.cs
- Int32KeyFrameCollection.cs
- NodeInfo.cs
- CryptoKeySecurity.cs
- CollectionViewProxy.cs
- ParserOptions.cs
- InternalDispatchObject.cs
- CopyAttributesAction.cs
- OneWayChannelFactory.cs
- HtmlTernaryTree.cs
- DynamicILGenerator.cs
- HtmlFormParameterWriter.cs
- HttpGetProtocolReflector.cs
- ResourceExpressionBuilder.cs
- ProvidersHelper.cs
- DummyDataSource.cs
- PrintControllerWithStatusDialog.cs
- IriParsingElement.cs
- MatrixConverter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- HotCommands.cs
- SrgsDocumentParser.cs
- ResourceSet.cs
- XmlDeclaration.cs
- BatchServiceHost.cs
- XmlDeclaration.cs
- DataContractSerializerOperationGenerator.cs
- PenLineJoinValidation.cs
- HandledEventArgs.cs
- TagMapCollection.cs
- UpdatePanel.cs