Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridViewCellErrorTextNeededEventArgs.cs
- SymmetricAlgorithm.cs
- EventLogSession.cs
- ISO2022Encoding.cs
- RightsManagementProvider.cs
- PrintDialog.cs
- DrawingBrush.cs
- DetailsView.cs
- RefType.cs
- MsmqHostedTransportManager.cs
- DbConnectionClosed.cs
- XmlSchemaComplexContent.cs
- ColorTransform.cs
- ThaiBuddhistCalendar.cs
- TargetException.cs
- GlyphRunDrawing.cs
- ResXResourceWriter.cs
- ZipIOExtraFieldPaddingElement.cs
- DataServiceEntityAttribute.cs
- FrameSecurityDescriptor.cs
- ToolStripSplitStackLayout.cs
- ColorContext.cs
- Encoding.cs
- BaseServiceProvider.cs
- AuthenticationModulesSection.cs
- InkCanvasInnerCanvas.cs
- OlePropertyStructs.cs
- SqlConnectionStringBuilder.cs
- HeaderedContentControl.cs
- FutureFactory.cs
- WorkflowControlClient.cs
- SelectionItemPattern.cs
- ToolboxComponentsCreatedEventArgs.cs
- DefaultWorkflowLoaderService.cs
- DataGridViewAddColumnDialog.cs
- ComPlusTraceRecord.cs
- FixedTextContainer.cs
- DetailsViewUpdateEventArgs.cs
- BuiltInExpr.cs
- PersonalizationStateInfo.cs
- XmlDataSource.cs
- PerformanceCounter.cs
- DynamicResourceExtensionConverter.cs
- HttpValueCollection.cs
- HtmlWindowCollection.cs
- OleDbSchemaGuid.cs
- Int32AnimationBase.cs
- XmlSerializationGeneratedCode.cs
- NativeWrapper.cs
- JsonReaderDelegator.cs
- SqlPersonalizationProvider.cs
- CodeStatement.cs
- JournalEntryListConverter.cs
- Page.cs
- XmlSiteMapProvider.cs
- XmlUtf8RawTextWriter.cs
- ExpressionParser.cs
- RemotingConfigParser.cs
- DataGridTextBox.cs
- XPathMessageFilterElementCollection.cs
- DataSourceXmlSerializer.cs
- TypedTableBase.cs
- QilStrConcat.cs
- EventlogProvider.cs
- ReliableChannelBinder.cs
- DateTimeConverter.cs
- CodeSubDirectoriesCollection.cs
- Button.cs
- RowsCopiedEventArgs.cs
- StaticTextPointer.cs
- HtmlInputControl.cs
- ChangeConflicts.cs
- SqlDataSourceView.cs
- SqlCachedBuffer.cs
- GridViewAutomationPeer.cs
- RepeatInfo.cs
- COM2ExtendedTypeConverter.cs
- odbcmetadatacolumnnames.cs
- UIElementIsland.cs
- SqlFileStream.cs
- AppSettingsReader.cs
- ExpandButtonVisibilityConverter.cs
- UIEndRequest.cs
- DocumentViewer.cs
- Signature.cs
- CompilationUtil.cs
- ProviderSettings.cs
- DataAdapter.cs
- CompilerGlobalScopeAttribute.cs
- ColorKeyFrameCollection.cs
- SafeProcessHandle.cs
- FrameworkTemplate.cs
- SchemaTableOptionalColumn.cs
- Brush.cs
- EntityContainerRelationshipSet.cs
- FileDataSourceCache.cs
- JpegBitmapDecoder.cs
- ReadOnlyCollectionBase.cs
- ToolStripButton.cs
- HashMembershipCondition.cs