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
- CollectionChangeEventArgs.cs
- Int32RectConverter.cs
- Rotation3D.cs
- StructuredTypeEmitter.cs
- Style.cs
- XamlWriter.cs
- remotingproxy.cs
- PagedDataSource.cs
- AutoGeneratedFieldProperties.cs
- ReadOnlyCollection.cs
- LayoutSettings.cs
- ToolStripItemTextRenderEventArgs.cs
- WrappedReader.cs
- TypeLoadException.cs
- FormattedTextSymbols.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TextLineResult.cs
- ScaleTransform3D.cs
- Effect.cs
- CalendarDateChangedEventArgs.cs
- _NetRes.cs
- TemplatePropertyEntry.cs
- ExpressionPrinter.cs
- Brushes.cs
- SweepDirectionValidation.cs
- RTLAwareMessageBox.cs
- RelatedEnd.cs
- ClientEventManager.cs
- RedistVersionInfo.cs
- ServerProtocol.cs
- PropertyGroupDescription.cs
- SoapDocumentServiceAttribute.cs
- SqlDataSourceView.cs
- MissingMemberException.cs
- Storyboard.cs
- ControlEvent.cs
- LicenseContext.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- BoundColumn.cs
- ButtonBase.cs
- BitStream.cs
- BindingContext.cs
- FloatMinMaxAggregationOperator.cs
- EmptyEnumerator.cs
- DbReferenceCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Interlocked.cs
- COM2ExtendedBrowsingHandler.cs
- HtmlShimManager.cs
- OdbcPermission.cs
- TextRangeEditLists.cs
- LocalizationComments.cs
- SiteMapSection.cs
- XDeferredAxisSource.cs
- DictionaryGlobals.cs
- SqlClientFactory.cs
- OracleParameterBinding.cs
- UnauthorizedWebPart.cs
- ValidationEventArgs.cs
- OptimizerPatterns.cs
- MsmqHostedTransportManager.cs
- ADMembershipUser.cs
- SHA256.cs
- XhtmlConformanceSection.cs
- CompositeDuplexBindingElement.cs
- SrgsSubset.cs
- OnOperation.cs
- SqlConnectionManager.cs
- BooleanKeyFrameCollection.cs
- ExpressionConverter.cs
- WorkflowLayouts.cs
- RectAnimationBase.cs
- CapabilitiesState.cs
- ErrorWrapper.cs
- AmbiguousMatchException.cs
- PreProcessInputEventArgs.cs
- Quaternion.cs
- SemaphoreSlim.cs
- RectConverter.cs
- WebPartConnectionsCloseVerb.cs
- MatrixTransform.cs
- DataControlImageButton.cs
- WebColorConverter.cs
- ValuePatternIdentifiers.cs
- XamlRtfConverter.cs
- StringCollection.cs
- ListDictionaryInternal.cs
- CompiledQueryCacheKey.cs
- ZipArchive.cs
- _DigestClient.cs
- Verify.cs
- QilChoice.cs
- TransformerConfigurationWizardBase.cs
- EmptyStringExpandableObjectConverter.cs
- Hyperlink.cs
- BindingExpressionUncommonField.cs
- SetStoryboardSpeedRatio.cs
- EntityCollection.cs
- RegexBoyerMoore.cs
- VisualBrush.cs