Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventDescriptor.cs
- PromptBuilder.cs
- DBBindings.cs
- FontNamesConverter.cs
- UpdatePanelTriggerCollection.cs
- TextProperties.cs
- SqlHelper.cs
- SqlCacheDependencyDatabase.cs
- TraceSwitch.cs
- WindowsAuthenticationEventArgs.cs
- FontSource.cs
- EmptyWithCancelationCheckWorkItem.cs
- DataGridViewBand.cs
- OracleInternalConnection.cs
- ConfigXmlText.cs
- sqlcontext.cs
- Dump.cs
- TerminatorSinks.cs
- DesignerActionItemCollection.cs
- OleDbTransaction.cs
- HMACRIPEMD160.cs
- TemplateEditingVerb.cs
- DBPropSet.cs
- IOThreadScheduler.cs
- FontEmbeddingManager.cs
- SignedXml.cs
- JsonXmlDataContract.cs
- PrintDialog.cs
- AdapterDictionary.cs
- SignerInfo.cs
- ToolboxItemSnapLineBehavior.cs
- ReaderContextStackData.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CommandDevice.cs
- PointF.cs
- PrintPreviewDialog.cs
- Types.cs
- DataRowView.cs
- Calendar.cs
- PeerInputChannelListener.cs
- Application.cs
- DataSourceControlBuilder.cs
- unsafenativemethodsother.cs
- FullTextBreakpoint.cs
- CacheRequest.cs
- dsa.cs
- UIElementPropertyUndoUnit.cs
- ItemCollection.cs
- ReverseInheritProperty.cs
- ContentDesigner.cs
- Container.cs
- AmbientLight.cs
- Soap12FormatExtensions.cs
- OdbcError.cs
- TreeNode.cs
- ImageSourceConverter.cs
- ViewgenContext.cs
- Adorner.cs
- baseaxisquery.cs
- DataGridItem.cs
- ExceptionUtil.cs
- EntryWrittenEventArgs.cs
- BamlTreeNode.cs
- HttpServerVarsCollection.cs
- TypedDatasetGenerator.cs
- AttributeCollection.cs
- StringPropertyBuilder.cs
- ControllableStoryboardAction.cs
- Token.cs
- Int64AnimationUsingKeyFrames.cs
- webeventbuffer.cs
- UrlAuthorizationModule.cs
- TimerElapsedEvenArgs.cs
- StrongTypingException.cs
- MatrixAnimationUsingKeyFrames.cs
- ComponentChangedEvent.cs
- LocatorGroup.cs
- ExpressionEvaluator.cs
- ServiceDebugElement.cs
- SettingsPropertyCollection.cs
- WebPartConnection.cs
- GlyphsSerializer.cs
- EncryptedData.cs
- Vector3DCollectionConverter.cs
- BufferedResponseStream.cs
- FacetValues.cs
- LabelInfo.cs
- BoolLiteral.cs
- DispatcherEventArgs.cs
- VBIdentifierName.cs
- InternalMappingException.cs
- RegisteredDisposeScript.cs
- SqlDuplicator.cs
- CompiledAction.cs
- NamespaceMapping.cs
- streamingZipPartStream.cs
- XmlSchemaObject.cs
- Padding.cs
- WebExceptionStatus.cs
- PrimarySelectionGlyph.cs