Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1305600 / 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
- ServicePointManagerElement.cs
- MarshalByRefObject.cs
- WebColorConverter.cs
- _UriSyntax.cs
- QilScopedVisitor.cs
- DelegatedStream.cs
- StringBuilder.cs
- ConsoleCancelEventArgs.cs
- AssemblyAttributesGoHere.cs
- SAPIEngineTypes.cs
- MdiWindowListItemConverter.cs
- TypeRefElement.cs
- HttpListener.cs
- CompareValidator.cs
- StyleHelper.cs
- AssemblyAttributes.cs
- Token.cs
- ApplicationServicesHostFactory.cs
- OperationAbortedException.cs
- ParagraphResult.cs
- IisTraceListener.cs
- ResourcePermissionBaseEntry.cs
- RequestStatusBarUpdateEventArgs.cs
- ChangeConflicts.cs
- NumberFormatter.cs
- DataGridAutomationPeer.cs
- HScrollBar.cs
- MemoryMappedViewStream.cs
- MessageQueueException.cs
- CodeSnippetTypeMember.cs
- DBCSCodePageEncoding.cs
- KernelTypeValidation.cs
- backend.cs
- XPathNodeHelper.cs
- Int64AnimationBase.cs
- PathSegmentCollection.cs
- FontFaceLayoutInfo.cs
- PolicyException.cs
- ForceCopyBuildProvider.cs
- DbConvert.cs
- ColumnMap.cs
- Cursors.cs
- WebAdminConfigurationHelper.cs
- HashHelper.cs
- StretchValidation.cs
- DesignerWebPartChrome.cs
- CodeBinaryOperatorExpression.cs
- ComplexObject.cs
- Module.cs
- ContentControl.cs
- ExitEventArgs.cs
- ValueOfAction.cs
- DataGridCommandEventArgs.cs
- OleDbException.cs
- TrackPoint.cs
- ConnectionStringSettings.cs
- SHA512Managed.cs
- HostingEnvironmentException.cs
- XmlHierarchicalEnumerable.cs
- CurrencyWrapper.cs
- TextServicesProperty.cs
- TableLayoutPanelCellPosition.cs
- Helpers.cs
- XmlEntityReference.cs
- WindowsButton.cs
- ArgIterator.cs
- BehaviorEditorPart.cs
- CompilerCollection.cs
- WizardPanel.cs
- SystemResourceHost.cs
- StringDictionary.cs
- _CommandStream.cs
- OutputCacheSettings.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- NamespaceCollection.cs
- SubpageParagraph.cs
- PieceNameHelper.cs
- UncommonField.cs
- SqlTypesSchemaImporter.cs
- PerformanceCounterLib.cs
- DocumentGrid.cs
- SQLUtility.cs
- Parameter.cs
- XPathBinder.cs
- DecimalConstantAttribute.cs
- OptimizedTemplateContentHelper.cs
- ArgIterator.cs
- ComboBoxAutomationPeer.cs
- HttpStreamFormatter.cs
- SizeValueSerializer.cs
- DataAccessor.cs
- SHA512Cng.cs
- TextAutomationPeer.cs
- SizeAnimationBase.cs
- TextFormatterContext.cs
- SocketPermission.cs
- ConsumerConnectionPointCollection.cs
- ToolStripRenderEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- DbProviderServices.cs