Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / CacheMode.cs / 1305600 / CacheMode.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2008 // // File: CacheMode.cs //----------------------------------------------------------------------------- using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { public abstract partial class CacheMode { internal CacheMode () { } ////// Parse - this method is called by the type converter to parse a CacheMode's string /// (provided in "value"). /// ////// A CacheMode which was created by parsing the "value" argument. /// /// String representation of a CacheMode. Cannot be null/empty. internal static CacheMode Parse(string value) { CacheMode cacheMode = null; if (value == "BitmapCache") { cacheMode = new BitmapCache(); } else { throw new FormatException(SR.Get(SRID.Parsers_IllegalToken)); } return cacheMode; } ////// Can serialze "this" to a string /// internal virtual bool CanSerializeToString() { return false; } internal virtual string ConvertToString(string format, IFormatProvider provider) { return base.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2008 // // File: CacheMode.cs //----------------------------------------------------------------------------- using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { public abstract partial class CacheMode { internal CacheMode () { } ////// Parse - this method is called by the type converter to parse a CacheMode's string /// (provided in "value"). /// ////// A CacheMode which was created by parsing the "value" argument. /// /// String representation of a CacheMode. Cannot be null/empty. internal static CacheMode Parse(string value) { CacheMode cacheMode = null; if (value == "BitmapCache") { cacheMode = new BitmapCache(); } else { throw new FormatException(SR.Get(SRID.Parsers_IllegalToken)); } return cacheMode; } ////// Can serialze "this" to a string /// internal virtual bool CanSerializeToString() { return false; } internal virtual string ConvertToString(string format, IFormatProvider provider) { return base.ToString(); } } } // 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
- ReceiveCompletedEventArgs.cs
- PolicyException.cs
- TreeWalkHelper.cs
- CqlParser.cs
- ArcSegment.cs
- ListSourceHelper.cs
- RequestCachingSection.cs
- UnsafeMethods.cs
- DllNotFoundException.cs
- FragmentQueryProcessor.cs
- ThicknessAnimationBase.cs
- XmlLangPropertyAttribute.cs
- HttpClientChannel.cs
- HttpRawResponse.cs
- Cursor.cs
- UndoManager.cs
- ImageConverter.cs
- HostSecurityManager.cs
- NavigationProperty.cs
- TokenBasedSet.cs
- DataListItemEventArgs.cs
- FamilyMap.cs
- CodeValidator.cs
- TransportBindingElementImporter.cs
- PtsHelper.cs
- PrinterSettings.cs
- AttributeTable.cs
- HuffModule.cs
- IdentifierService.cs
- TargetPerspective.cs
- ActivityInstanceMap.cs
- PingOptions.cs
- HttpsHostedTransportConfiguration.cs
- ParameterCollection.cs
- BrowserDefinition.cs
- Table.cs
- HttpCacheParams.cs
- MimeXmlReflector.cs
- HTTPNotFoundHandler.cs
- ProfileService.cs
- latinshape.cs
- ParameterBuilder.cs
- CodeArrayIndexerExpression.cs
- CodePropertyReferenceExpression.cs
- RegexCharClass.cs
- dbdatarecord.cs
- FlowLayoutSettings.cs
- NonClientArea.cs
- TextStore.cs
- PTConverter.cs
- PolicyManager.cs
- VideoDrawing.cs
- DataGridViewMethods.cs
- XmlCharType.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StrongNamePublicKeyBlob.cs
- SubtreeProcessor.cs
- Matrix3D.cs
- SqlException.cs
- GradientStop.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Misc.cs
- ColumnWidthChangedEvent.cs
- ProfileEventArgs.cs
- ProtocolReflector.cs
- SQLResource.cs
- filewebresponse.cs
- DesignerOptionService.cs
- OciEnlistContext.cs
- OdbcStatementHandle.cs
- XamlWriter.cs
- Error.cs
- BindingNavigator.cs
- SecurityPolicySection.cs
- ReachPageContentCollectionSerializerAsync.cs
- DynamicMethod.cs
- NativeMethods.cs
- ParameterCollection.cs
- QueryCursorEventArgs.cs
- DataBoundLiteralControl.cs
- TreeViewImageIndexConverter.cs
- Itemizer.cs
- XpsFilter.cs
- SafeNativeHandle.cs
- EncryptedXml.cs
- MonitorWrapper.cs
- ChildTable.cs
- Button.cs
- DeadCharTextComposition.cs
- Border.cs
- SchemaManager.cs
- Helper.cs
- UserPersonalizationStateInfo.cs
- DrawToolTipEventArgs.cs
- CodeExporter.cs
- MethodBuilderInstantiation.cs
- EntityTemplateFactory.cs
- SystemGatewayIPAddressInformation.cs
- DisableDpiAwarenessAttribute.cs
- DetailsViewInsertEventArgs.cs