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
- ControlBuilderAttribute.cs
- MessageBox.cs
- ColumnClickEvent.cs
- TextDecorations.cs
- XmlSortKey.cs
- ImageCodecInfoPrivate.cs
- Trace.cs
- DataSourceXmlTextReader.cs
- ToolStripArrowRenderEventArgs.cs
- CharacterHit.cs
- WebConfigurationHost.cs
- TextRunTypographyProperties.cs
- AutomationEventArgs.cs
- XPathNodeInfoAtom.cs
- XmlSerializationGeneratedCode.cs
- BeginEvent.cs
- XAMLParseException.cs
- RefreshResponseInfo.cs
- ListBoxItemAutomationPeer.cs
- SettingsContext.cs
- ViewStateException.cs
- BinHexEncoding.cs
- FillRuleValidation.cs
- DataGridPagerStyle.cs
- FormView.cs
- UndoEngine.cs
- SystemIPInterfaceStatistics.cs
- _FixedSizeReader.cs
- SignedXml.cs
- StructuredProperty.cs
- QueueProcessor.cs
- CalendarBlackoutDatesCollection.cs
- activationcontext.cs
- HttpModule.cs
- PromptBuilder.cs
- SecurityHelper.cs
- ProxyFragment.cs
- DecoderBestFitFallback.cs
- UnsafeNativeMethods.cs
- WsrmFault.cs
- ConnectionOrientedTransportChannelFactory.cs
- CodeAttributeArgument.cs
- PolyLineSegment.cs
- FragmentNavigationEventArgs.cs
- ServiceXNameTypeConverter.cs
- CheckBox.cs
- EdmConstants.cs
- GradientSpreadMethodValidation.cs
- SiteOfOriginContainer.cs
- TempFiles.cs
- ResourcePermissionBaseEntry.cs
- TreeView.cs
- ButtonRenderer.cs
- VersionConverter.cs
- WebPartDisplayMode.cs
- Image.cs
- PromptBuilder.cs
- SystemNetHelpers.cs
- RadioButtonAutomationPeer.cs
- MdImport.cs
- Pair.cs
- DifferencingCollection.cs
- DBSchemaTable.cs
- NestPullup.cs
- GenericRootAutomationPeer.cs
- SapiRecoInterop.cs
- HtmlElementErrorEventArgs.cs
- StructuredTypeEmitter.cs
- ScrollChrome.cs
- IntPtr.cs
- MethodBuilder.cs
- CFGGrammar.cs
- AudioFormatConverter.cs
- TextServicesManager.cs
- DesignerCommandAdapter.cs
- ButtonBaseAutomationPeer.cs
- XmlQualifiedName.cs
- SamlConstants.cs
- WhitespaceRule.cs
- DrawingGroup.cs
- DataGridViewBand.cs
- RegionInfo.cs
- HttpChannelHelper.cs
- RegexCode.cs
- DuplicateWaitObjectException.cs
- AspProxy.cs
- arabicshape.cs
- BitmapEffectOutputConnector.cs
- RequestQueryProcessor.cs
- CaseInsensitiveHashCodeProvider.cs
- DataObject.cs
- ContentOperations.cs
- XPathLexer.cs
- DateTimeOffsetAdapter.cs
- ModuleConfigurationInfo.cs
- TrustSection.cs
- EventHandlersStore.cs
- InfoCardHelper.cs
- BindingMAnagerBase.cs
- SqlStatistics.cs