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
- SoapClientProtocol.cs
- XmlSortKeyAccumulator.cs
- Rect3D.cs
- Variant.cs
- XmlSerializationGeneratedCode.cs
- SystemColors.cs
- ProcessModelInfo.cs
- PerformanceCountersElement.cs
- KeyEventArgs.cs
- BaseCodePageEncoding.cs
- PageCatalogPart.cs
- ActivationWorker.cs
- VectorConverter.cs
- SmiRecordBuffer.cs
- DispatcherFrame.cs
- StylusShape.cs
- RequestCachingSection.cs
- Rectangle.cs
- ActiveXContainer.cs
- ProtocolsSection.cs
- LinkLabel.cs
- DiagnosticTraceRecords.cs
- _NestedSingleAsyncResult.cs
- AppendHelper.cs
- HitTestParameters3D.cs
- WasNotInstalledException.cs
- SimpleBitVector32.cs
- ListViewItemMouseHoverEvent.cs
- Storyboard.cs
- RMEnrollmentPage1.cs
- NativeMethods.cs
- RawKeyboardInputReport.cs
- PageAsyncTask.cs
- PathStreamGeometryContext.cs
- CorrelationTokenInvalidatedHandler.cs
- ReaderWriterLockWrapper.cs
- GB18030Encoding.cs
- EnumerableRowCollectionExtensions.cs
- TextReader.cs
- Int32Storage.cs
- UserMapPath.cs
- ToggleProviderWrapper.cs
- DataGridViewDataConnection.cs
- FileVersionInfo.cs
- ellipse.cs
- ContainerVisual.cs
- UIElement3D.cs
- DataChangedEventManager.cs
- GridViewCommandEventArgs.cs
- VerifyHashRequest.cs
- XmlCharCheckingReader.cs
- MobileResource.cs
- dataSvcMapFileLoader.cs
- WriteTimeStream.cs
- _NativeSSPI.cs
- DataRelationCollection.cs
- GroupBox.cs
- OdbcStatementHandle.cs
- PermissionToken.cs
- DBPropSet.cs
- XmlSerializerSection.cs
- OwnerDrawPropertyBag.cs
- DigitShape.cs
- HtmlTitle.cs
- ModelFunctionTypeElement.cs
- DeploymentSection.cs
- EntitySqlQueryCacheEntry.cs
- EventMappingSettings.cs
- ModelItemKeyValuePair.cs
- XmlNavigatorFilter.cs
- Dispatcher.cs
- ProviderBase.cs
- Int32Storage.cs
- TextServicesManager.cs
- UnauthorizedAccessException.cs
- RequestTimeoutManager.cs
- ApplicationActivator.cs
- Primitive.cs
- Guid.cs
- PackagePartCollection.cs
- TemplateContentLoader.cs
- DataGridAddNewRow.cs
- XmlCharacterData.cs
- ComponentResourceKeyConverter.cs
- DbConnectionOptions.cs
- ScrollPattern.cs
- TextStore.cs
- SecurityContext.cs
- ListCollectionView.cs
- DataSourceXmlClassAttribute.cs
- MonitorWrapper.cs
- ConfigUtil.cs
- ReadWriteSpinLock.cs
- SystemColorTracker.cs
- PlainXmlSerializer.cs
- HScrollBar.cs
- ModuleBuilderData.cs
- SafeRightsManagementHandle.cs
- GeneralEndpointIdentity.cs
- TableColumn.cs