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
- BamlRecordWriter.cs
- LockCookie.cs
- RegexBoyerMoore.cs
- CustomCredentialPolicy.cs
- TripleDES.cs
- Int32EqualityComparer.cs
- DefaultSerializationProviderAttribute.cs
- AppDomainShutdownMonitor.cs
- PassportAuthenticationEventArgs.cs
- TableRowGroup.cs
- _AutoWebProxyScriptEngine.cs
- LicFileLicenseProvider.cs
- HtmlEncodedRawTextWriter.cs
- JournalEntryStack.cs
- OrderByBuilder.cs
- Validator.cs
- AppSettingsSection.cs
- DocumentOutline.cs
- SplineKeyFrames.cs
- CheckBoxBaseAdapter.cs
- ModelProperty.cs
- BrowserCapabilitiesFactoryBase.cs
- ManagedFilter.cs
- DebugTracing.cs
- XmlSchemaFacet.cs
- DataBoundControlAdapter.cs
- WebPartConnectionsCancelEventArgs.cs
- QuaternionAnimationUsingKeyFrames.cs
- WmpBitmapDecoder.cs
- XPathSelfQuery.cs
- EventEntry.cs
- ExecutionContext.cs
- EdmPropertyAttribute.cs
- SharedPersonalizationStateInfo.cs
- ForeignKeyFactory.cs
- SecurityKeyIdentifierClause.cs
- CodeTryCatchFinallyStatement.cs
- CompiledRegexRunner.cs
- SourceFileBuildProvider.cs
- AutomationProperty.cs
- TransactedBatchingElement.cs
- SafeHandles.cs
- DesignerAttributeInfo.cs
- Blend.cs
- SafeRegistryHandle.cs
- SqlConnectionStringBuilder.cs
- DataTableTypeConverter.cs
- NotCondition.cs
- ExceptionUtil.cs
- ASCIIEncoding.cs
- DateTimePicker.cs
- relpropertyhelper.cs
- OdbcParameterCollection.cs
- ViewStateModeByIdAttribute.cs
- SafeNativeMethods.cs
- ClientRolePrincipal.cs
- KeyEventArgs.cs
- EventManager.cs
- _DigestClient.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ACE.cs
- CursorConverter.cs
- TypeResolver.cs
- ImportRequest.cs
- SymbolMethod.cs
- SessionKeyExpiredException.cs
- DependentList.cs
- IndexerNameAttribute.cs
- FormattedText.cs
- MailAddressCollection.cs
- QueryContinueDragEvent.cs
- ProfileEventArgs.cs
- NotFiniteNumberException.cs
- SelectionUIHandler.cs
- CodeTypeDeclarationCollection.cs
- OperatingSystemVersionCheck.cs
- StyleCollection.cs
- EventItfInfo.cs
- SplashScreenNativeMethods.cs
- CacheSection.cs
- SpotLight.cs
- FlowDocumentPage.cs
- AlternateView.cs
- CodeGenHelper.cs
- ProbeRequestResponseAsyncResult.cs
- WebServiceFault.cs
- ColorInterpolationModeValidation.cs
- TreeViewImageIndexConverter.cs
- StrokeNode.cs
- RemotingConfigParser.cs
- KeyedHashAlgorithm.cs
- DataPagerFieldItem.cs
- WinEventHandler.cs
- PageCodeDomTreeGenerator.cs
- TableSectionStyle.cs
- ConfigurationSettings.cs
- Vector3DValueSerializer.cs
- TcpWorkerProcess.cs
- XmlMtomWriter.cs
- MediaContextNotificationWindow.cs