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
- PerfService.cs
- TypeToStringValueConverter.cs
- ContextItemManager.cs
- IBuiltInEvidence.cs
- WindowsIdentity.cs
- XmlByteStreamReader.cs
- CustomWebEventKey.cs
- Application.cs
- ContainerActivationHelper.cs
- hwndwrapper.cs
- AlgoModule.cs
- ModifierKeysValueSerializer.cs
- RouteUrlExpressionBuilder.cs
- InkCollectionBehavior.cs
- DefaultObjectMappingItemCollection.cs
- EventSetter.cs
- ServiceDiscoveryElement.cs
- GeometryHitTestParameters.cs
- PeerDefaultCustomResolverClient.cs
- HttpResponse.cs
- DistributedTransactionPermission.cs
- DetailsViewUpdateEventArgs.cs
- WindowsTreeView.cs
- RequestSecurityToken.cs
- ObsoleteAttribute.cs
- MetaModel.cs
- Figure.cs
- ValueSerializer.cs
- BeginStoryboard.cs
- UniformGrid.cs
- DataGridPageChangedEventArgs.cs
- XPathNavigator.cs
- WindowsTitleBar.cs
- DocumentPaginator.cs
- WizardForm.cs
- CheckBoxStandardAdapter.cs
- BooleanProjectedSlot.cs
- OdbcParameter.cs
- BindableAttribute.cs
- DataServiceBehavior.cs
- ResourceFallbackManager.cs
- SamlAuthorizationDecisionStatement.cs
- TextFormatter.cs
- XhtmlTextWriter.cs
- OrderedHashRepartitionEnumerator.cs
- ConfigurationPropertyCollection.cs
- TextElementCollectionHelper.cs
- EmptyTextWriter.cs
- IdentityReference.cs
- RepeaterItem.cs
- TreeNodeStyle.cs
- DBCommandBuilder.cs
- IDReferencePropertyAttribute.cs
- SMSvcHost.cs
- EventMappingSettings.cs
- FormViewUpdateEventArgs.cs
- SqlMethodCallConverter.cs
- WorkflowTerminatedException.cs
- TypeReference.cs
- TerminatorSinks.cs
- TextEndOfSegment.cs
- MenuItemCollection.cs
- MemberMaps.cs
- PowerStatus.cs
- TextDecoration.cs
- updateconfighost.cs
- HttpAsyncResult.cs
- TextEffectResolver.cs
- BoundColumn.cs
- Block.cs
- TextChange.cs
- BinHexDecoder.cs
- BinaryNode.cs
- Underline.cs
- Converter.cs
- FormattedTextSymbols.cs
- TableLayoutSettings.cs
- CorrelationManager.cs
- TraceContextRecord.cs
- XmlILOptimizerVisitor.cs
- VisualTreeHelper.cs
- DoubleMinMaxAggregationOperator.cs
- datacache.cs
- UnsafeNativeMethods.cs
- Focus.cs
- codemethodreferenceexpression.cs
- CSharpCodeProvider.cs
- HwndKeyboardInputProvider.cs
- XmlNotation.cs
- PrintingPermissionAttribute.cs
- WindowsAuthenticationModule.cs
- LazyInitializer.cs
- CompModSwitches.cs
- GregorianCalendar.cs
- FacetChecker.cs
- COM2ColorConverter.cs
- MimeBasePart.cs
- SAPICategories.cs
- ExtentCqlBlock.cs
- EdgeProfileValidation.cs