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
- BaseUriWithWildcard.cs
- ListBindingHelper.cs
- FlowLayout.cs
- hresults.cs
- DeleteBookmarkScope.cs
- HotCommands.cs
- PasswordBox.cs
- RequestDescription.cs
- GeneralTransform.cs
- BackgroundWorker.cs
- TypeDelegator.cs
- QuadraticBezierSegment.cs
- DesignTimeTemplateParser.cs
- TextBoxBaseDesigner.cs
- COM2ColorConverter.cs
- SmtpNegotiateAuthenticationModule.cs
- PropertyInformation.cs
- PersonalizationDictionary.cs
- PublisherMembershipCondition.cs
- BrushConverter.cs
- ImageDesigner.cs
- ClipboardProcessor.cs
- ParseChildrenAsPropertiesAttribute.cs
- TransportSecurityHelpers.cs
- StaticTextPointer.cs
- MediaScriptCommandRoutedEventArgs.cs
- CodeLabeledStatement.cs
- KerberosSecurityTokenProvider.cs
- DataGridTemplateColumn.cs
- OleDbPropertySetGuid.cs
- ObjectStateEntryDbDataRecord.cs
- DelayedRegex.cs
- QuaternionValueSerializer.cs
- TemplateNameScope.cs
- CollectionBuilder.cs
- EntityConnectionStringBuilderItem.cs
- ErrorTableItemStyle.cs
- WeakEventManager.cs
- XamlReaderHelper.cs
- OdbcConnection.cs
- DataSourceCacheDurationConverter.cs
- MethodInfo.cs
- DataGridViewColumnTypeEditor.cs
- FieldNameLookup.cs
- BadImageFormatException.cs
- GlobalizationSection.cs
- PropertyMapper.cs
- ArgumentException.cs
- ReturnEventArgs.cs
- DataBoundControlHelper.cs
- SiteMapHierarchicalDataSourceView.cs
- DispatchChannelSink.cs
- ApplicationSecurityManager.cs
- RightsManagementResourceHelper.cs
- SystemGatewayIPAddressInformation.cs
- MouseBinding.cs
- XPathCompileException.cs
- UnsafeNativeMethods.cs
- EdmMember.cs
- JpegBitmapDecoder.cs
- ImageConverter.cs
- GridViewColumnHeaderAutomationPeer.cs
- SqlTypeSystemProvider.cs
- CodeTypeDeclaration.cs
- ToolStripSettings.cs
- Compilation.cs
- typedescriptorpermission.cs
- DeferredTextReference.cs
- WebPartVerbCollection.cs
- OrderPreservingSpoolingTask.cs
- DefinitionBase.cs
- MessagePropertyVariants.cs
- MultiByteCodec.cs
- ApplicationManager.cs
- CompilerError.cs
- ReferenceAssemblyAttribute.cs
- AppDomain.cs
- path.cs
- EventLogHandle.cs
- TypeExtension.cs
- DocumentXmlWriter.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- XmlWriter.cs
- ProgressBarAutomationPeer.cs
- DesignerHost.cs
- WorkflowElementDialogWindow.xaml.cs
- SchemaConstraints.cs
- TableColumn.cs
- IndentTextWriter.cs
- XmlChoiceIdentifierAttribute.cs
- RectKeyFrameCollection.cs
- InstanceView.cs
- OdbcDataAdapter.cs
- AQNBuilder.cs
- PolicyUnit.cs
- InteropAutomationProvider.cs
- BevelBitmapEffect.cs
- PropertyGridEditorPart.cs
- XmlSchemas.cs
- SingletonInstanceContextProvider.cs