Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StackOverflowException.cs
- SqlConnectionFactory.cs
- ConfigXmlElement.cs
- RequestQueue.cs
- MimeParameterWriter.cs
- _AuthenticationState.cs
- StyleHelper.cs
- FieldInfo.cs
- TemplateApplicationHelper.cs
- ClosureBinding.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DependencyObjectCodeDomSerializer.cs
- ObjectItemAttributeAssemblyLoader.cs
- TraceContextRecord.cs
- DefaultProxySection.cs
- XmlSerializerSection.cs
- RangeValidator.cs
- TypeName.cs
- DataGridSortCommandEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- StyleHelper.cs
- TimerElapsedEvenArgs.cs
- SqlDataSourceConnectionPanel.cs
- QilUnary.cs
- sqlmetadatafactory.cs
- WebProxyScriptElement.cs
- Path.cs
- StorageEndPropertyMapping.cs
- StdValidatorsAndConverters.cs
- DataSetMappper.cs
- NumberFormatInfo.cs
- DllNotFoundException.cs
- NativeMethods.cs
- AesCryptoServiceProvider.cs
- Calendar.cs
- TransformerInfo.cs
- CancelEventArgs.cs
- ValidationResult.cs
- XmlSchemaComplexContentRestriction.cs
- RoutedCommand.cs
- NetworkAddressChange.cs
- MimePart.cs
- UInt32Converter.cs
- InvalidCastException.cs
- Utility.cs
- EmbeddedObject.cs
- CompoundFileReference.cs
- HttpCachePolicy.cs
- GridViewDeletedEventArgs.cs
- XhtmlBasicLiteralTextAdapter.cs
- StatusBar.cs
- SafeRightsManagementSessionHandle.cs
- GridLengthConverter.cs
- SafeThemeHandle.cs
- DBPropSet.cs
- Pkcs7Signer.cs
- ASCIIEncoding.cs
- FileInfo.cs
- TiffBitmapDecoder.cs
- EdmError.cs
- SelectionRange.cs
- EntityDataSourceStatementEditorForm.cs
- SplitterPanel.cs
- Int32CollectionConverter.cs
- EntityTransaction.cs
- Monitor.cs
- EntityUtil.cs
- MsmqDiagnostics.cs
- DataGridViewLayoutData.cs
- XpsManager.cs
- ServiceSecurityContext.cs
- DataObjectSettingDataEventArgs.cs
- ProfessionalColorTable.cs
- BaseTemplateParser.cs
- WebEventTraceProvider.cs
- NotifyCollectionChangedEventArgs.cs
- CheckBoxStandardAdapter.cs
- Matrix3DConverter.cs
- RefreshEventArgs.cs
- DataService.cs
- ControlCachePolicy.cs
- XmlExpressionDumper.cs
- PropertyEmitterBase.cs
- DataGridItem.cs
- TypefaceMetricsCache.cs
- UnsafeNativeMethods.cs
- UniqueIdentifierService.cs
- IgnoreFileBuildProvider.cs
- XmlSchemaExternal.cs
- CreateParams.cs
- SerializationInfoEnumerator.cs
- XmlMapping.cs
- AnonymousIdentificationSection.cs
- UnauthorizedWebPart.cs
- BoundPropertyEntry.cs
- DataGridViewLinkCell.cs
- RegexCaptureCollection.cs
- XmlFormatWriterGenerator.cs
- _UriTypeConverter.cs
- BoundColumn.cs