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
- RegexReplacement.cs
- iisPickupDirectory.cs
- SqlNotificationEventArgs.cs
- RayMeshGeometry3DHitTestResult.cs
- AttributeCollection.cs
- TraceLevelStore.cs
- User.cs
- CallTemplateAction.cs
- ZoneButton.cs
- DefaultObjectSerializer.cs
- DESCryptoServiceProvider.cs
- DataGridViewCellPaintingEventArgs.cs
- ListViewGroupConverter.cs
- DesignTimeDataBinding.cs
- DataGridViewCellStyle.cs
- GeneralTransform3DTo2DTo3D.cs
- ElapsedEventArgs.cs
- AuthenticationModulesSection.cs
- UnsafeNativeMethods.cs
- ConfigXmlElement.cs
- WebPartsPersonalization.cs
- HttpListener.cs
- Error.cs
- ClientSideProviderDescription.cs
- DataPagerFieldItem.cs
- DbException.cs
- Walker.cs
- BinaryWriter.cs
- OdbcConnectionString.cs
- RijndaelManaged.cs
- ThemeDictionaryExtension.cs
- AsyncPostBackTrigger.cs
- AspNetHostingPermission.cs
- CngKeyBlobFormat.cs
- SmtpNtlmAuthenticationModule.cs
- SubclassTypeValidator.cs
- XPathScanner.cs
- RegexMatchCollection.cs
- Pair.cs
- WebPartCatalogCloseVerb.cs
- AdornerDecorator.cs
- GenericAuthenticationEventArgs.cs
- DataObjectAttribute.cs
- AuthenticatedStream.cs
- DebugTraceHelper.cs
- TableLayoutStyleCollection.cs
- Region.cs
- MimeFormImporter.cs
- SystemDiagnosticsSection.cs
- ElementMarkupObject.cs
- AssemblyUtil.cs
- SharedStatics.cs
- OdbcError.cs
- TargetControlTypeCache.cs
- Currency.cs
- WebPartEditorOkVerb.cs
- StylusPointProperties.cs
- DataContext.cs
- UTF7Encoding.cs
- Byte.cs
- EventBuilder.cs
- StateDesignerConnector.cs
- PrefixQName.cs
- DesignTimeTemplateParser.cs
- CreateSequenceResponse.cs
- Clock.cs
- ConfigurationHelpers.cs
- XhtmlConformanceSection.cs
- DataTransferEventArgs.cs
- VSWCFServiceContractGenerator.cs
- ConfigurationManagerInternal.cs
- WebScriptMetadataFormatter.cs
- MappedMetaModel.cs
- SystemUdpStatistics.cs
- UnsafeNativeMethodsPenimc.cs
- UnauthorizedWebPart.cs
- BitmapEffectOutputConnector.cs
- FrameworkTemplate.cs
- clipboard.cs
- RowCache.cs
- OrCondition.cs
- TableItemPatternIdentifiers.cs
- TypeBrowserDialog.cs
- CreateDataSourceDialog.cs
- RecordManager.cs
- RMPublishingDialog.cs
- TextDecorationCollectionConverter.cs
- DispatchChannelSink.cs
- Simplifier.cs
- ListViewItemCollectionEditor.cs
- CmsUtils.cs
- ComponentEditorForm.cs
- ZoneIdentityPermission.cs
- ImageBrush.cs
- ChannelManager.cs
- DataControlHelper.cs
- TextHintingModeValidation.cs
- RbTree.cs
- DelimitedListTraceListener.cs
- TrustSection.cs