Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ItemMap.cs
- XPathItem.cs
- CompiledQuery.cs
- MergablePropertyAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- Profiler.cs
- Timeline.cs
- XmlElementAttributes.cs
- CodeActivityContext.cs
- HtmlTableRowCollection.cs
- WebPartConnectionsCloseVerb.cs
- ChildrenQuery.cs
- MarginsConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlChildNodes.cs
- ColumnCollection.cs
- CommonXSendMessage.cs
- TemplateControlBuildProvider.cs
- SQLMoneyStorage.cs
- PLINQETWProvider.cs
- RuntimeHelpers.cs
- HtmlElementCollection.cs
- RandomNumberGenerator.cs
- RectangleGeometry.cs
- CommandField.cs
- DesignBindingEditor.cs
- ClickablePoint.cs
- Substitution.cs
- WebPartTracker.cs
- TextBoxLine.cs
- serverconfig.cs
- TextDecorations.cs
- MailWebEventProvider.cs
- ProtocolsConfigurationEntry.cs
- XamlSerializerUtil.cs
- ManipulationInertiaStartingEventArgs.cs
- Comparer.cs
- RequestCachePolicyConverter.cs
- DifferencingCollection.cs
- AudioFormatConverter.cs
- X509CertificateStore.cs
- DesignerDataTableBase.cs
- DynamicActivityProperty.cs
- odbcmetadatacolumnnames.cs
- SchemaMapping.cs
- DataControlButton.cs
- sitestring.cs
- ISAPIApplicationHost.cs
- DbMetaDataCollectionNames.cs
- EmptyEnumerator.cs
- LinqDataSourceHelper.cs
- SchemaAttDef.cs
- LinkedResourceCollection.cs
- CharKeyFrameCollection.cs
- ListParaClient.cs
- Gdiplus.cs
- DeclaredTypeValidatorAttribute.cs
- OTFRasterizer.cs
- SingleAnimationUsingKeyFrames.cs
- ClientApiGenerator.cs
- ContractBase.cs
- TextRenderer.cs
- ColorContext.cs
- AsyncMethodInvoker.cs
- PropertyPathConverter.cs
- LazyInitializer.cs
- DataKeyCollection.cs
- SqlRecordBuffer.cs
- PlanCompilerUtil.cs
- ArithmeticException.cs
- WsdlInspector.cs
- PolicyConversionContext.cs
- CatalogZone.cs
- WindowsScroll.cs
- StackSpiller.Temps.cs
- CheckBox.cs
- DataServiceContext.cs
- XPathException.cs
- _HeaderInfo.cs
- RadioButtonFlatAdapter.cs
- HelpProvider.cs
- HierarchicalDataBoundControl.cs
- WebPartCollection.cs
- PipeSecurity.cs
- cookiecollection.cs
- SoapMessage.cs
- TargetControlTypeAttribute.cs
- GridPattern.cs
- ContractUtils.cs
- Control.cs
- APCustomTypeDescriptor.cs
- CultureInfoConverter.cs
- CustomAttributeBuilder.cs
- LockedAssemblyCache.cs
- AppDomainUnloadedException.cs
- BigInt.cs
- BinaryWriter.cs
- LassoHelper.cs
- X509CertificateInitiatorClientCredential.cs
- TreeNodeBindingCollection.cs