Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1305600 / 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
- TemplateBaseAction.cs
- PasswordRecoveryAutoFormat.cs
- OleDbCommand.cs
- NavigatorOutput.cs
- CheckBoxList.cs
- Propagator.cs
- Bezier.cs
- SHA1CryptoServiceProvider.cs
- LinkTarget.cs
- GcSettings.cs
- XmlMessageFormatter.cs
- MenuItemBindingCollection.cs
- FaultBookmark.cs
- CfgParser.cs
- ClientConfigurationHost.cs
- sqlser.cs
- GridViewItemAutomationPeer.cs
- ClassHandlersStore.cs
- CatalogZoneAutoFormat.cs
- SqlNamer.cs
- BasicKeyConstraint.cs
- BroadcastEventHelper.cs
- MDIClient.cs
- CodeComment.cs
- GenericParameterDataContract.cs
- RoleServiceManager.cs
- WebConfigurationManager.cs
- TagNameToTypeMapper.cs
- SafeNativeMethods.cs
- DbConnectionPoolIdentity.cs
- GraphicsState.cs
- ContentControl.cs
- WorkflowApplicationException.cs
- OracleMonthSpan.cs
- InputLangChangeEvent.cs
- InvokeGenerator.cs
- Decoder.cs
- DataTableMappingCollection.cs
- ResolveCriteria11.cs
- WS2007FederationHttpBinding.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XMLSyntaxException.cs
- DataControlPagerLinkButton.cs
- EnterpriseServicesHelper.cs
- TypedReference.cs
- ManifestResourceInfo.cs
- TouchesCapturedWithinProperty.cs
- Win32Interop.cs
- XmlChildEnumerator.cs
- AnchoredBlock.cs
- Mutex.cs
- TaiwanLunisolarCalendar.cs
- PointCollection.cs
- EncoderParameter.cs
- CompiledScopeCriteria.cs
- CrossContextChannel.cs
- ChooseAction.cs
- XmlBinaryWriterSession.cs
- AsymmetricKeyExchangeDeformatter.cs
- ObjectQueryProvider.cs
- X509Certificate.cs
- ChannelManager.cs
- WSSecurityPolicy11.cs
- FrameworkTemplate.cs
- XpsDocument.cs
- EditCommandColumn.cs
- PropertyValueChangedEvent.cs
- PageFunction.cs
- TextEndOfParagraph.cs
- DSASignatureDeformatter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SizeAnimationUsingKeyFrames.cs
- DateTimeOffsetConverter.cs
- Comparer.cs
- OneOfScalarConst.cs
- ProviderIncompatibleException.cs
- SmiConnection.cs
- SymmetricKey.cs
- FixedSchema.cs
- mongolianshape.cs
- Bidi.cs
- GlobalProxySelection.cs
- TraceHelpers.cs
- Permission.cs
- GraphicsContainer.cs
- Cell.cs
- FillErrorEventArgs.cs
- RegisteredHiddenField.cs
- SrgsDocumentParser.cs
- WmiInstallComponent.cs
- DataBoundControlHelper.cs
- Win32Native.cs
- Collection.cs
- ConfigurationManagerHelperFactory.cs
- OdbcStatementHandle.cs
- TemplatingOptionsDialog.cs
- QilGeneratorEnv.cs
- Matrix3DConverter.cs
- sqlpipe.cs
- IListConverters.cs