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
- InvalidateEvent.cs
- RenderContext.cs
- CreateUserWizardDesigner.cs
- DataGridCellEditEndingEventArgs.cs
- AlternateViewCollection.cs
- ConvertEvent.cs
- PhoneCallDesigner.cs
- List.cs
- SerialPinChanges.cs
- Sequence.cs
- CreateInstanceBinder.cs
- NamedPermissionSet.cs
- MonitorWrapper.cs
- processwaithandle.cs
- Semaphore.cs
- UserMapPath.cs
- StyleSheetComponentEditor.cs
- TableColumn.cs
- DataGridViewTopRowAccessibleObject.cs
- WebPartConnectVerb.cs
- LabelExpression.cs
- ToolStripContainer.cs
- MatrixCamera.cs
- HuffmanTree.cs
- WindowsFormsHostPropertyMap.cs
- TemplateXamlTreeBuilder.cs
- StorageModelBuildProvider.cs
- SignatureToken.cs
- ToolStripActionList.cs
- MissingMethodException.cs
- FixedSOMLineRanges.cs
- Activator.cs
- ICollection.cs
- ValueTypeFixupInfo.cs
- BitmapSizeOptions.cs
- DataGridTableCollection.cs
- DrawingVisualDrawingContext.cs
- ArrayTypeMismatchException.cs
- __FastResourceComparer.cs
- BoundField.cs
- UidManager.cs
- EventListener.cs
- ImageListStreamer.cs
- X509ChainPolicy.cs
- StatusBarPanelClickEvent.cs
- UntrustedRecipientException.cs
- SQLBinary.cs
- RemoteWebConfigurationHost.cs
- LinqDataSourceDeleteEventArgs.cs
- XPathNodeList.cs
- FrameworkRichTextComposition.cs
- Point4DValueSerializer.cs
- TcpTransportSecurityElement.cs
- WindowsFormsDesignerOptionService.cs
- PaperSource.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DataBindingCollection.cs
- basecomparevalidator.cs
- PresentationUIStyleResources.cs
- safelink.cs
- RouteValueDictionary.cs
- ByteAnimation.cs
- ISAPIRuntime.cs
- ApplicationTrust.cs
- ButtonChrome.cs
- SizeConverter.cs
- ImpersonationContext.cs
- BuilderPropertyEntry.cs
- XmlQueryRuntime.cs
- PropertyMetadata.cs
- xml.cs
- SchemaNames.cs
- ListControlConvertEventArgs.cs
- ConfigUtil.cs
- FactoryGenerator.cs
- AllMembershipCondition.cs
- EntityCommandExecutionException.cs
- UnsafeMethods.cs
- ServerValidateEventArgs.cs
- XamlRtfConverter.cs
- DbProviderFactory.cs
- ValidationPropertyAttribute.cs
- CompilerGeneratedAttribute.cs
- Vector3DKeyFrameCollection.cs
- XmlSerializationWriter.cs
- CodeNamespaceImportCollection.cs
- SizeChangedInfo.cs
- UrlMappingCollection.cs
- DetailsViewPagerRow.cs
- OAVariantLib.cs
- ProcessModelSection.cs
- InkCanvasInnerCanvas.cs
- FixedDocumentPaginator.cs
- SystemUnicastIPAddressInformation.cs
- FocusChangedEventArgs.cs
- DuplicateWaitObjectException.cs
- DllNotFoundException.cs
- Light.cs
- ToolboxItemLoader.cs
- SchemaConstraints.cs