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
- DatagridviewDisplayedBandsData.cs
- TaskFactory.cs
- MenuBindingsEditor.cs
- StylusDevice.cs
- ClusterRegistryConfigurationProvider.cs
- HttpListenerResponse.cs
- GetWinFXPath.cs
- AvTraceFormat.cs
- MouseWheelEventArgs.cs
- BinaryWriter.cs
- VectorValueSerializer.cs
- BookmarkScopeHandle.cs
- DataSourceHelper.cs
- StringUtil.cs
- CancellationToken.cs
- Matrix.cs
- CodeCompileUnit.cs
- ElementHostPropertyMap.cs
- DataProviderNameConverter.cs
- WebPartConnection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- HyperLink.cs
- Socket.cs
- HuffModule.cs
- OperationValidationEventArgs.cs
- SQLSingleStorage.cs
- CodeIndexerExpression.cs
- SimpleParser.cs
- ResourceDescriptionAttribute.cs
- RootBuilder.cs
- CodePrimitiveExpression.cs
- BoundColumn.cs
- Utils.cs
- AttributeAction.cs
- XmlQueryOutput.cs
- XmlQuerySequence.cs
- HttpPostProtocolImporter.cs
- CodeParameterDeclarationExpressionCollection.cs
- CodeLinePragma.cs
- ConfigurationStrings.cs
- DataSvcMapFile.cs
- Inflater.cs
- FilterEventArgs.cs
- DynamicMethod.cs
- Helper.cs
- PropertyBuilder.cs
- ZipIOBlockManager.cs
- XhtmlStyleClass.cs
- WebPartConnectionsConnectVerb.cs
- SafeHandles.cs
- propertyentry.cs
- DbReferenceCollection.cs
- FunctionOverloadResolver.cs
- ContextQuery.cs
- NamespaceInfo.cs
- CacheHelper.cs
- Clock.cs
- ImageInfo.cs
- SessionPageStatePersister.cs
- Dynamic.cs
- RsaKeyIdentifierClause.cs
- FontFamilyValueSerializer.cs
- StackSpiller.Generated.cs
- BaseValidator.cs
- TransformerInfoCollection.cs
- CloseCollectionAsyncResult.cs
- IfAction.cs
- DataGridViewImageColumn.cs
- MSG.cs
- WebPartCloseVerb.cs
- MessageEventSubscriptionService.cs
- PresentationSource.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- FixedNode.cs
- TableItemStyle.cs
- X509SecurityTokenProvider.cs
- sortedlist.cs
- Psha1DerivedKeyGeneratorHelper.cs
- SizeAnimationClockResource.cs
- SqlAliaser.cs
- TreeNodeBindingCollection.cs
- DesignerRegion.cs
- FullTextLine.cs
- SamlSecurityToken.cs
- DataFieldEditor.cs
- Membership.cs
- SpotLight.cs
- Calendar.cs
- MultipleCopiesCollection.cs
- ReadContentAsBinaryHelper.cs
- EmptyImpersonationContext.cs
- ObjectStateFormatter.cs
- FormViewRow.cs
- FlowLayoutPanel.cs
- FormViewPageEventArgs.cs
- CompressStream.cs
- XD.cs
- StylusCollection.cs
- CharConverter.cs
- SqlDataSourceCommandEventArgs.cs