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
- SqlTypeConverter.cs
- ObjectViewListener.cs
- MimeTypeAttribute.cs
- XmlSchemaCollection.cs
- DocumentPaginator.cs
- WebRequest.cs
- MetabaseSettingsIis7.cs
- DataPagerFieldCollection.cs
- XmlDataSourceView.cs
- Transform3D.cs
- CompatibleComparer.cs
- HitTestWithPointDrawingContextWalker.cs
- UrlMapping.cs
- SemanticTag.cs
- CodeCatchClause.cs
- DrawTreeNodeEventArgs.cs
- OdbcFactory.cs
- MenuItemAutomationPeer.cs
- HttpHandlerActionCollection.cs
- FontDifferentiator.cs
- LookupBindingPropertiesAttribute.cs
- PersianCalendar.cs
- OptimalBreakSession.cs
- SimpleTypeResolver.cs
- ToolStripStatusLabel.cs
- GenericParameterDataContract.cs
- StorageInfo.cs
- DataGridTextBoxColumn.cs
- PropVariant.cs
- InternalControlCollection.cs
- PathGeometry.cs
- OwnerDrawPropertyBag.cs
- InfoCardTraceRecord.cs
- BoundColumn.cs
- SqlCommandSet.cs
- Delegate.cs
- _NativeSSPI.cs
- LayoutEngine.cs
- ISO2022Encoding.cs
- HScrollBar.cs
- Properties.cs
- RowToFieldTransformer.cs
- RangeContentEnumerator.cs
- WindowsClaimSet.cs
- SharedStatics.cs
- TaskHelper.cs
- UpdatePanel.cs
- ParsedAttributeCollection.cs
- SamlAttribute.cs
- VectorCollectionValueSerializer.cs
- DataServiceProcessingPipelineEventArgs.cs
- DataServiceConfiguration.cs
- DataGrid.cs
- SqlClientWrapperSmiStreamChars.cs
- AlphabetConverter.cs
- StrokeIntersection.cs
- XmlQueryContext.cs
- XmlNamespaceMapping.cs
- ParameterCollection.cs
- CheckBoxRenderer.cs
- SplashScreenNativeMethods.cs
- Pair.cs
- DeviceSpecific.cs
- PrivilegedConfigurationManager.cs
- TrackingMemoryStream.cs
- ellipse.cs
- Queue.cs
- FileFormatException.cs
- ClipboardProcessor.cs
- XmlSchemaImport.cs
- MethodRental.cs
- SQLInt64.cs
- UnsafeNativeMethods.cs
- HistoryEventArgs.cs
- InvalidDataException.cs
- SmtpLoginAuthenticationModule.cs
- XmlSchemaException.cs
- ScriptBehaviorDescriptor.cs
- MatrixValueSerializer.cs
- StringUtil.cs
- TargetConverter.cs
- WSSecurityTokenSerializer.cs
- GradientSpreadMethodValidation.cs
- RelationshipEnd.cs
- GenericTextProperties.cs
- ListenUriMode.cs
- RewritingProcessor.cs
- CharStorage.cs
- ClientConfigPaths.cs
- SymDocumentType.cs
- StyleSheetComponentEditor.cs
- Regex.cs
- DefaultTextStoreTextComposition.cs
- RightsManagementPermission.cs
- AuthenticateEventArgs.cs
- DataTableMapping.cs
- ActivityBindForm.cs
- SrgsItemList.cs
- CodeMemberEvent.cs
- XmlAggregates.cs