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
- WebBrowserEvent.cs
- AttributeQuery.cs
- DetailsViewPagerRow.cs
- HostProtectionPermission.cs
- EntityTypeBase.cs
- ADRoleFactory.cs
- MenuStrip.cs
- ModelService.cs
- NativeMethodsCLR.cs
- ProfilePropertySettings.cs
- unitconverter.cs
- IPCCacheManager.cs
- SelectionEditingBehavior.cs
- ToggleButtonAutomationPeer.cs
- SeekStoryboard.cs
- Transactions.cs
- Line.cs
- PowerModeChangedEventArgs.cs
- FocusWithinProperty.cs
- FreeIndexList.cs
- CompiledAction.cs
- IChannel.cs
- BinaryUtilClasses.cs
- XPathExpr.cs
- SoapReflectionImporter.cs
- ImageInfo.cs
- WindowsRegion.cs
- ObjectDataSourceSelectingEventArgs.cs
- ToolboxItemFilterAttribute.cs
- XmlSchemaInclude.cs
- DataGridRowHeader.cs
- SoapMessage.cs
- ViewGenerator.cs
- TraceShell.cs
- FastEncoderWindow.cs
- NativeMethods.cs
- ListViewGroupConverter.cs
- RewritingSimplifier.cs
- QilXmlReader.cs
- ParagraphVisual.cs
- TableLayoutPanel.cs
- OraclePermission.cs
- MDIControlStrip.cs
- TextShapeableCharacters.cs
- WebPartUserCapability.cs
- OperationExecutionFault.cs
- PackUriHelper.cs
- ActivityTypeCodeDomSerializer.cs
- RowToParametersTransformer.cs
- Calendar.cs
- CodeAttributeArgument.cs
- FindSimilarActivitiesVerb.cs
- TreeNodeStyleCollection.cs
- ConstructorNeedsTagAttribute.cs
- DropTarget.cs
- PtsCache.cs
- BindingWorker.cs
- TextTreeTextElementNode.cs
- NamespaceEmitter.cs
- ProgressChangedEventArgs.cs
- SafePointer.cs
- TabControlDesigner.cs
- BuilderPropertyEntry.cs
- PolicyException.cs
- ReferenceConverter.cs
- EntityWrapperFactory.cs
- SqlConnection.cs
- DiagnosticsElement.cs
- AspNetHostingPermission.cs
- ColorMatrix.cs
- XmlQueryRuntime.cs
- XmlExtensionFunction.cs
- Permission.cs
- MouseGestureValueSerializer.cs
- SharingService.cs
- ConcurrencyBehavior.cs
- XmlSchemaSimpleContentExtension.cs
- DeferredElementTreeState.cs
- Message.cs
- base64Transforms.cs
- ToolStripSystemRenderer.cs
- Delegate.cs
- OracleException.cs
- Select.cs
- GridViewColumnHeaderAutomationPeer.cs
- EllipticalNodeOperations.cs
- SecurityElement.cs
- CompilerGlobalScopeAttribute.cs
- GrammarBuilder.cs
- ToolStripComboBox.cs
- ListViewItemEventArgs.cs
- KeyToListMap.cs
- basecomparevalidator.cs
- CallbackException.cs
- InputLanguageCollection.cs
- SubpageParagraph.cs
- DataGridHeaderBorder.cs
- FloaterParaClient.cs
- GridView.cs
- ColorTransform.cs