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
- Axis.cs
- UpdateTranslator.cs
- SQLMoneyStorage.cs
- StubHelpers.cs
- MemberBinding.cs
- UrlMappingCollection.cs
- CalendarDay.cs
- MailAddress.cs
- InputLanguage.cs
- MimeBasePart.cs
- Renderer.cs
- _BufferOffsetSize.cs
- IOThreadScheduler.cs
- XmlRootAttribute.cs
- FormsAuthenticationUserCollection.cs
- SqlUserDefinedTypeAttribute.cs
- FontFamilyIdentifier.cs
- ExternalDataExchangeService.cs
- MarkupCompilePass2.cs
- FormViewPageEventArgs.cs
- HtmlTableRowCollection.cs
- ConstNode.cs
- RemotingConfiguration.cs
- CodeAttributeDeclaration.cs
- TypeReference.cs
- panel.cs
- SystemUdpStatistics.cs
- SemanticAnalyzer.cs
- MsmqInputSessionChannelListener.cs
- DateTimePicker.cs
- VectorCollectionValueSerializer.cs
- InternalConfigConfigurationFactory.cs
- AsyncResult.cs
- XamlPoint3DCollectionSerializer.cs
- HttpServerProtocol.cs
- connectionpool.cs
- SafeRegistryHandle.cs
- SqlBuffer.cs
- RotateTransform.cs
- WebPermission.cs
- MemberDescriptor.cs
- ObjectSet.cs
- DataGridViewCellStyle.cs
- SystemIPInterfaceProperties.cs
- ClosureBinding.cs
- Site.cs
- EditorAttribute.cs
- AxisAngleRotation3D.cs
- HttpStreamMessage.cs
- DataSourceProvider.cs
- HierarchicalDataBoundControl.cs
- XhtmlTextWriter.cs
- BitVector32.cs
- FormViewPagerRow.cs
- TransformPattern.cs
- MouseWheelEventArgs.cs
- AssemblyName.cs
- QilGeneratorEnv.cs
- isolationinterop.cs
- _HelperAsyncResults.cs
- VectorCollectionValueSerializer.cs
- ScrollProviderWrapper.cs
- SqlInternalConnectionTds.cs
- Cursors.cs
- Rect3DValueSerializer.cs
- XPathQueryGenerator.cs
- PackageRelationshipCollection.cs
- ConnectionPointCookie.cs
- WebControlsSection.cs
- TransformValueSerializer.cs
- MustUnderstandSoapException.cs
- CryptoKeySecurity.cs
- OutputScopeManager.cs
- TransformValueSerializer.cs
- cookiecontainer.cs
- WindowsRegion.cs
- HttpCookiesSection.cs
- ContainerControl.cs
- XmlWellformedWriter.cs
- ReadOnlyState.cs
- AmbientLight.cs
- ToolStripStatusLabel.cs
- DbCommandDefinition.cs
- Section.cs
- RangeValuePattern.cs
- ResponseStream.cs
- CodeAttributeArgument.cs
- HatchBrush.cs
- ObjectDataSourceFilteringEventArgs.cs
- ExpressionHelper.cs
- ArrayExtension.cs
- SafeArrayRankMismatchException.cs
- Calendar.cs
- ContainerAction.cs
- SerializationInfo.cs
- WorkflowEventArgs.cs
- XamlTypeMapper.cs
- ColorIndependentAnimationStorage.cs
- XmlDocumentType.cs
- EntityDataSource.cs