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
- FilteredAttributeCollection.cs
- IncrementalHitTester.cs
- sqlstateclientmanager.cs
- TextEffectResolver.cs
- UrlMappingsSection.cs
- WebBrowserPermission.cs
- DataRelation.cs
- Win32Native.cs
- ImageKeyConverter.cs
- TrustManagerMoreInformation.cs
- XamlReader.cs
- OdbcErrorCollection.cs
- MatrixTransform.cs
- DateBoldEvent.cs
- DetailsView.cs
- SystemException.cs
- FrameworkContentElement.cs
- HttpPostedFileBase.cs
- StylusPointPropertyId.cs
- WmlLiteralTextAdapter.cs
- IUnknownConstantAttribute.cs
- Lease.cs
- StateChangeEvent.cs
- XmlException.cs
- TdsParserSafeHandles.cs
- ModelTreeManager.cs
- CodeArrayCreateExpression.cs
- DetailsViewCommandEventArgs.cs
- GridSplitterAutomationPeer.cs
- x509utils.cs
- System.Data_BID.cs
- CompModHelpers.cs
- CategoryAttribute.cs
- ConfigurationSectionGroupCollection.cs
- LoadedOrUnloadedOperation.cs
- SspiSafeHandles.cs
- ExtensionDataObject.cs
- CredentialCache.cs
- DynamicILGenerator.cs
- EventSchemaTraceListener.cs
- DataBindingCollection.cs
- UInt32.cs
- ResourceDisplayNameAttribute.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- MemberCollection.cs
- ListGeneralPage.cs
- MbpInfo.cs
- PiiTraceSource.cs
- RelationshipSet.cs
- CodeTypeConstructor.cs
- IgnoreSectionHandler.cs
- DesignSurface.cs
- isolationinterop.cs
- FormatterServices.cs
- ByteStreamGeometryContext.cs
- MethodToken.cs
- PathTooLongException.cs
- XamlToRtfParser.cs
- InkCanvasInnerCanvas.cs
- ConfigurationSchemaErrors.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SqlReorderer.cs
- XComponentModel.cs
- FlowDocumentReader.cs
- ObjectSecurity.cs
- _FixedSizeReader.cs
- MemoryFailPoint.cs
- EpmContentSerializerBase.cs
- DataGridViewCellMouseEventArgs.cs
- Regex.cs
- NumberSubstitution.cs
- TreeNodeClickEventArgs.cs
- processwaithandle.cs
- ReadOnlyHierarchicalDataSource.cs
- SQLGuidStorage.cs
- SiteMapNode.cs
- KeyTime.cs
- XmlHierarchicalDataSourceView.cs
- validationstate.cs
- validationstate.cs
- TextServicesPropertyRanges.cs
- HtmlDocument.cs
- XPathNodeHelper.cs
- DataStreamFromComStream.cs
- FormsAuthentication.cs
- LineBreakRecord.cs
- TemplatedWizardStep.cs
- ToolStripDropTargetManager.cs
- CheckBox.cs
- OdbcConnection.cs
- PassportAuthenticationModule.cs
- CollectionViewGroupInternal.cs
- X509Certificate.cs
- ShutDownListener.cs
- Convert.cs
- QueryTask.cs
- XmlSchemaSimpleContentRestriction.cs
- FixedDocumentSequencePaginator.cs
- GeometryModel3D.cs
- LocatorPart.cs