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
- XmlAnyAttributeAttribute.cs
- FontSourceCollection.cs
- TargetException.cs
- ClientSettings.cs
- FormsAuthenticationCredentials.cs
- BufferAllocator.cs
- StrokeCollectionDefaultValueFactory.cs
- OleDbCommandBuilder.cs
- ListParaClient.cs
- AttachmentService.cs
- DropTarget.cs
- ViewGenerator.cs
- TextParaClient.cs
- NavigationEventArgs.cs
- GetPageCompletedEventArgs.cs
- SqlDataSource.cs
- RegexCode.cs
- HtmlTable.cs
- UnSafeCharBuffer.cs
- UnmanagedMarshal.cs
- XmlUrlResolver.cs
- HttpCookieCollection.cs
- Odbc32.cs
- SystemEvents.cs
- DSASignatureFormatter.cs
- EntityDataSourceQueryBuilder.cs
- InkCanvasSelectionAdorner.cs
- Win32MouseDevice.cs
- FunctionQuery.cs
- ReflectionServiceProvider.cs
- XmlSchemaSequence.cs
- ProcessHostMapPath.cs
- EntityPropertyMappingAttribute.cs
- WindowsFormsHostAutomationPeer.cs
- SiteIdentityPermission.cs
- ViewStateException.cs
- WindowsFormsHelpers.cs
- MetadataCache.cs
- ChineseLunisolarCalendar.cs
- TreeViewAutomationPeer.cs
- CompilationUtil.cs
- PriorityQueue.cs
- ServiceInfoCollection.cs
- X509SecurityToken.cs
- TableItemStyle.cs
- ManualResetEventSlim.cs
- ItemCheckedEvent.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SizeChangedEventArgs.cs
- MessageHeader.cs
- DurableOperationAttribute.cs
- DataGridViewImageCell.cs
- AutomationPatternInfo.cs
- SqlBulkCopyColumnMapping.cs
- CookielessHelper.cs
- StringDictionary.cs
- ProviderSettingsCollection.cs
- ColorAnimationUsingKeyFrames.cs
- ResizeGrip.cs
- TableLayoutStyleCollection.cs
- DocumentXmlWriter.cs
- ColorMatrix.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataPagerFieldCommandEventArgs.cs
- WindowsPen.cs
- ServiceObjectContainer.cs
- DataColumnPropertyDescriptor.cs
- BuildProvider.cs
- HttpPostedFile.cs
- SoapCodeExporter.cs
- Stroke.cs
- MetadataItemEmitter.cs
- MetaModel.cs
- AttributeCollection.cs
- ResolveNameEventArgs.cs
- XamlDebuggerXmlReader.cs
- MatcherBuilder.cs
- HostedAspNetEnvironment.cs
- XdrBuilder.cs
- ScaleTransform.cs
- OdbcEnvironmentHandle.cs
- NetSectionGroup.cs
- DataTableCollection.cs
- RadioButtonFlatAdapter.cs
- Pipe.cs
- WorkflowServiceInstance.cs
- DispatcherExceptionEventArgs.cs
- ContextDataSource.cs
- UTF8Encoding.cs
- RayMeshGeometry3DHitTestResult.cs
- FileVersion.cs
- DiscoveryMessageProperty.cs
- SymmetricKeyWrap.cs
- OracleEncoding.cs
- Brush.cs
- ErrorTolerantObjectWriter.cs
- XhtmlBasicControlAdapter.cs
- ResourcePool.cs
- ExpressionBuilderCollection.cs
- FragmentQuery.cs