Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PageHandlerFactory.cs
- SendingRequestEventArgs.cs
- EntityClassGenerator.cs
- DocumentOutline.cs
- BindingMemberInfo.cs
- EncoderFallback.cs
- HyperLink.cs
- BoundColumn.cs
- ConfigurationPropertyAttribute.cs
- NamespaceQuery.cs
- OpCodes.cs
- RequiredAttributeAttribute.cs
- SqlBulkCopyColumnMapping.cs
- Processor.cs
- GeneralTransform3DGroup.cs
- CodeArgumentReferenceExpression.cs
- StringResourceManager.cs
- StrongNameUtility.cs
- GradientStop.cs
- DetailsViewUpdatedEventArgs.cs
- ToolStripContentPanel.cs
- Attributes.cs
- IndependentlyAnimatedPropertyMetadata.cs
- smtpconnection.cs
- Cursor.cs
- FederatedMessageSecurityOverHttpElement.cs
- xsdvalidator.cs
- QueryStatement.cs
- PropertyChange.cs
- HuffModule.cs
- FileSystemEnumerable.cs
- DataAdapter.cs
- XDeferredAxisSource.cs
- StylusTip.cs
- PointAnimation.cs
- ViewSimplifier.cs
- ConstraintManager.cs
- Command.cs
- XamlHostingSection.cs
- EncryptedType.cs
- DivideByZeroException.cs
- ConnectionManagementElement.cs
- DecimalAnimation.cs
- RedBlackList.cs
- SqlDataSourceCustomCommandPanel.cs
- ExtenderProvidedPropertyAttribute.cs
- UnsafeNativeMethods.cs
- HostingEnvironmentSection.cs
- DbParameterCollectionHelper.cs
- SQLSingleStorage.cs
- Binding.cs
- BrowserDefinitionCollection.cs
- BitmapMetadata.cs
- ComEventsHelper.cs
- ServiceHttpHandlerFactory.cs
- TogglePatternIdentifiers.cs
- WebPartChrome.cs
- ExitEventArgs.cs
- LongAverageAggregationOperator.cs
- ToolboxItemAttribute.cs
- TableSectionStyle.cs
- SlipBehavior.cs
- AsyncOperationManager.cs
- PropertyRecord.cs
- WorkflowRuntimeBehavior.cs
- brushes.cs
- Activator.cs
- ToolStripDesignerAvailabilityAttribute.cs
- SmiSettersStream.cs
- loginstatus.cs
- _BasicClient.cs
- XmlReaderDelegator.cs
- XomlCompilerParameters.cs
- StorageScalarPropertyMapping.cs
- Mutex.cs
- ResourceBinder.cs
- RadialGradientBrush.cs
- TreeViewHitTestInfo.cs
- RemoteAsymmetricSignatureFormatter.cs
- DateTimeValueSerializer.cs
- ToolStripPanel.cs
- PostBackOptions.cs
- WindowsSecurityTokenAuthenticator.cs
- CountAggregationOperator.cs
- TypeNameConverter.cs
- SqlCharStream.cs
- SystemDiagnosticsSection.cs
- validationstate.cs
- SmtpReplyReader.cs
- EmptyEnumerable.cs
- AutomationEventArgs.cs
- Triangle.cs
- LocationReference.cs
- DbProviderFactory.cs
- DataGridCellInfo.cs
- ThreadPool.cs
- MetadataSource.cs
- QueryAccessibilityHelpEvent.cs
- ChangeBlockUndoRecord.cs
- ParameterToken.cs