Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathSelfQuery.cs
- CompoundFileStorageReference.cs
- XmlAnyElementAttribute.cs
- TraceUtility.cs
- TaskFormBase.cs
- SynchronizationContext.cs
- SelectionItemProviderWrapper.cs
- GeneralTransform3DGroup.cs
- OdbcConnectionString.cs
- PenCursorManager.cs
- JpegBitmapDecoder.cs
- PropertyIDSet.cs
- DesigntimeLicenseContext.cs
- Quaternion.cs
- DbConnectionClosed.cs
- BinaryObjectInfo.cs
- RawStylusSystemGestureInputReport.cs
- SafeLibraryHandle.cs
- NativeRightsManagementAPIsStructures.cs
- ObjectTypeMapping.cs
- LineSegment.cs
- OleStrCAMarshaler.cs
- ExternalCalls.cs
- SplitterCancelEvent.cs
- StagingAreaInputItem.cs
- SmtpAuthenticationManager.cs
- SafeNativeMethods.cs
- InnerItemCollectionView.cs
- MsmqHostedTransportManager.cs
- Sentence.cs
- MsmqIntegrationInputMessage.cs
- ConcurrentStack.cs
- StringResourceManager.cs
- RawUIStateInputReport.cs
- AggregationMinMaxHelpers.cs
- Dispatcher.cs
- SourceChangedEventArgs.cs
- FileDialog.cs
- InputDevice.cs
- IdleTimeoutMonitor.cs
- InstanceKeyView.cs
- ProfileModule.cs
- ImageMapEventArgs.cs
- XmlElementList.cs
- NullRuntimeConfig.cs
- SchemaSetCompiler.cs
- CustomPopupPlacement.cs
- MouseOverProperty.cs
- ObjectHandle.cs
- AttributeProviderAttribute.cs
- CharStorage.cs
- HtmlButton.cs
- UserPreferenceChangingEventArgs.cs
- DataTableMapping.cs
- KeySplineConverter.cs
- ColumnWidthChangedEvent.cs
- RemotingHelper.cs
- SequenceQuery.cs
- NTAccount.cs
- DisplayNameAttribute.cs
- XmlSchemaException.cs
- CompoundFileReference.cs
- Bits.cs
- UrlPropertyAttribute.cs
- WebPartCancelEventArgs.cs
- HWStack.cs
- SettingsBase.cs
- ImageIndexEditor.cs
- PropertyInfoSet.cs
- SerializationFieldInfo.cs
- SamlAssertionKeyIdentifierClause.cs
- AnimationClockResource.cs
- OrderByQueryOptionExpression.cs
- MenuStrip.cs
- TypedDataSourceCodeGenerator.cs
- WebServiceEnumData.cs
- SettingsProviderCollection.cs
- HwndAppCommandInputProvider.cs
- _DigestClient.cs
- DataGridViewCellStyleConverter.cs
- XmlSchemaAppInfo.cs
- CompModHelpers.cs
- BaseCAMarshaler.cs
- PrintDialog.cs
- XPathDocument.cs
- Common.cs
- ComponentCommands.cs
- RowsCopiedEventArgs.cs
- AccessDataSourceView.cs
- DataReaderContainer.cs
- WebDescriptionAttribute.cs
- WebPageTraceListener.cs
- DataGridColumn.cs
- UnauthorizedAccessException.cs
- NegotiateStream.cs
- ConditionalWeakTable.cs
- RadioButton.cs
- RegexFCD.cs
- PlanCompiler.cs
- NotFiniteNumberException.cs