Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UnsafeNativeMethods.cs
- Assert.cs
- ButtonField.cs
- SizeF.cs
- UInt64.cs
- dataprotectionpermissionattribute.cs
- HtmlInputCheckBox.cs
- Solver.cs
- LateBoundBitmapDecoder.cs
- WorkflowViewManager.cs
- RepeatBehaviorConverter.cs
- GifBitmapEncoder.cs
- BuildResultCache.cs
- SectionInput.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- TraceSection.cs
- DefaultValidator.cs
- FeatureSupport.cs
- ToolboxBitmapAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- CheckedPointers.cs
- StaticContext.cs
- DataGridViewLayoutData.cs
- KeyboardNavigation.cs
- Calendar.cs
- X509CertificateCollection.cs
- ExpressionStringBuilder.cs
- PageThemeCodeDomTreeGenerator.cs
- SetStoryboardSpeedRatio.cs
- MetadataArtifactLoaderCompositeFile.cs
- AdRotatorDesigner.cs
- PathParser.cs
- UInt16.cs
- CheckBoxStandardAdapter.cs
- SpanIndex.cs
- BitConverter.cs
- EntityDataSourceContextCreatingEventArgs.cs
- WorkflowValidationFailedException.cs
- WebConfigurationFileMap.cs
- DynamicDocumentPaginator.cs
- GetPageNumberCompletedEventArgs.cs
- AsyncInvokeContext.cs
- CaseInsensitiveHashCodeProvider.cs
- DesignSurfaceServiceContainer.cs
- ObjectDataSourceMethodEventArgs.cs
- SqlParameter.cs
- DrawingVisual.cs
- ConfigurationSettings.cs
- HostingEnvironmentException.cs
- SizeConverter.cs
- TrustLevelCollection.cs
- SQLRoleProvider.cs
- NullableConverter.cs
- TemplateNameScope.cs
- EventManager.cs
- ComponentChangingEvent.cs
- HtmlUtf8RawTextWriter.cs
- XmlSerializerFactory.cs
- AQNBuilder.cs
- MouseEvent.cs
- TouchEventArgs.cs
- BaseProcessor.cs
- PropertyMetadata.cs
- DataSourceXmlTextReader.cs
- HttpWebRequest.cs
- DesignerInterfaces.cs
- DataGridViewCellFormattingEventArgs.cs
- MdiWindowListItemConverter.cs
- SchemaImporterExtension.cs
- QueryParameter.cs
- PersonalizationAdministration.cs
- HwndMouseInputProvider.cs
- XamlFigureLengthSerializer.cs
- CustomMenuItemCollection.cs
- PathData.cs
- ClientCultureInfo.cs
- GraphicsContext.cs
- WeakEventTable.cs
- BuildProviderUtils.cs
- GPRECTF.cs
- DependencyPropertyKind.cs
- LinkedResourceCollection.cs
- TableMethodGenerator.cs
- Conditional.cs
- Operator.cs
- dsa.cs
- PathFigureCollectionValueSerializer.cs
- AssemblyHash.cs
- ExpandSegmentCollection.cs
- BrowserDefinition.cs
- XmlQueryRuntime.cs
- ControlBindingsCollection.cs
- GroupBoxAutomationPeer.cs
- BoundsDrawingContextWalker.cs
- TextEndOfSegment.cs
- ApplicationTrust.cs
- CompilationSection.cs
- DesignerDataParameter.cs
- ListItemParagraph.cs
- ToolboxItemFilterAttribute.cs