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
- WindowProviderWrapper.cs
- ActivityDesignerAccessibleObject.cs
- AppDomainFactory.cs
- ClientUtils.cs
- HtmlEmptyTagControlBuilder.cs
- SQLInt64.cs
- SoapSchemaMember.cs
- TableCellCollection.cs
- UndoManager.cs
- SynchronizationValidator.cs
- Positioning.cs
- LocatorPartList.cs
- RequestSecurityTokenResponse.cs
- StateDesigner.Helpers.cs
- XPathException.cs
- Utils.cs
- Stack.cs
- MultiByteCodec.cs
- DefaultAssemblyResolver.cs
- CustomCredentialPolicy.cs
- KerberosRequestorSecurityToken.cs
- Section.cs
- MultiBindingExpression.cs
- ConfigUtil.cs
- XmlWrappingReader.cs
- ICspAsymmetricAlgorithm.cs
- SplineKeyFrames.cs
- WebPartEditorOkVerb.cs
- FileLevelControlBuilderAttribute.cs
- AsymmetricSignatureFormatter.cs
- FileUpload.cs
- InvalidFilterCriteriaException.cs
- ServiceRouteHandler.cs
- TimeEnumHelper.cs
- PropertyNames.cs
- ProviderException.cs
- EraserBehavior.cs
- SqlClientWrapperSmiStreamChars.cs
- XmlComment.cs
- StringUtil.cs
- EmptyImpersonationContext.cs
- XmlCharacterData.cs
- IPHostEntry.cs
- SerialReceived.cs
- HtmlElementCollection.cs
- CachingHintValidation.cs
- ControlFilterExpression.cs
- XmlUtil.cs
- WpfPayload.cs
- DecimalStorage.cs
- Column.cs
- StatementContext.cs
- COM2ExtendedTypeConverter.cs
- StringBuilder.cs
- XamlGridLengthSerializer.cs
- TextElementEnumerator.cs
- TextRangeBase.cs
- ParsedAttributeCollection.cs
- XPathAncestorQuery.cs
- LifetimeServices.cs
- printdlgexmarshaler.cs
- XmlChildNodes.cs
- DllNotFoundException.cs
- ValidatingReaderNodeData.cs
- TemplateLookupAction.cs
- Variable.cs
- InvalidOleVariantTypeException.cs
- ResourcesChangeInfo.cs
- BoolExpr.cs
- ObjectKeyFrameCollection.cs
- ExeConfigurationFileMap.cs
- TransformProviderWrapper.cs
- Schema.cs
- ToolstripProfessionalRenderer.cs
- NativeActivityAbortContext.cs
- PublisherMembershipCondition.cs
- DecimalAverageAggregationOperator.cs
- CodeTypeMember.cs
- ResXBuildProvider.cs
- RuleSetCollection.cs
- ListViewItemMouseHoverEvent.cs
- CurrentTimeZone.cs
- ExtendedPropertyDescriptor.cs
- BaseValidator.cs
- SafeEventLogReadHandle.cs
- WebPartEditorOkVerb.cs
- TimersDescriptionAttribute.cs
- DoubleAnimationUsingKeyFrames.cs
- ConfigurationStrings.cs
- DataChangedEventManager.cs
- SafeTimerHandle.cs
- AccessKeyManager.cs
- TextPointer.cs
- TableAdapterManagerHelper.cs
- FtpWebResponse.cs
- EventDescriptorCollection.cs
- MSHTMLHost.cs
- IISMapPath.cs
- objectresult_tresulttype.cs
- Rect3D.cs