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
- LineUtil.cs
- AutoFocusStyle.xaml.cs
- FileSystemInfo.cs
- PeerNameRegistration.cs
- DelegatedStream.cs
- XsdValidatingReader.cs
- CollectionChangeEventArgs.cs
- IntSecurity.cs
- WhitespaceRuleReader.cs
- WebBrowser.cs
- Rotation3D.cs
- ConfigXmlText.cs
- PerformanceCounterPermissionAttribute.cs
- ChtmlCalendarAdapter.cs
- JsonSerializer.cs
- CacheDict.cs
- IQueryable.cs
- EditorAttribute.cs
- MembershipPasswordException.cs
- ByValueEqualityComparer.cs
- RequestCachePolicyConverter.cs
- BuiltInPermissionSets.cs
- MetaForeignKeyColumn.cs
- Rethrow.cs
- WebPartConnectionsCloseVerb.cs
- ReachFixedDocumentSerializerAsync.cs
- WebSysDefaultValueAttribute.cs
- SolidColorBrush.cs
- Identity.cs
- DateTimeParse.cs
- BooleanStorage.cs
- HostProtectionException.cs
- ComponentTray.cs
- CultureSpecificCharacterBufferRange.cs
- PeekCompletedEventArgs.cs
- FlowLayoutPanel.cs
- ProfileSettings.cs
- CurrencyManager.cs
- NativeMethods.cs
- ExpressionPrefixAttribute.cs
- CacheEntry.cs
- WebPartDisplayMode.cs
- Application.cs
- ContextMenuStripGroup.cs
- PrimitiveSchema.cs
- thaishape.cs
- WebControl.cs
- KeyFrames.cs
- WindowsToolbarAsMenu.cs
- AsynchronousChannel.cs
- FormsIdentity.cs
- Certificate.cs
- XPathArrayIterator.cs
- CompatibleComparer.cs
- Debug.cs
- SqlMethods.cs
- LineUtil.cs
- columnmapfactory.cs
- Compensate.cs
- ReferentialConstraintRoleElement.cs
- ObjectNotFoundException.cs
- RegexCode.cs
- RSATokenProvider.cs
- EventHandlers.cs
- AggregatePushdown.cs
- WebPartZoneBaseDesigner.cs
- OAVariantLib.cs
- DynamicValidatorEventArgs.cs
- PassportPrincipal.cs
- BookmarkWorkItem.cs
- EventlogProvider.cs
- OdbcRowUpdatingEvent.cs
- TreeNode.cs
- DebugHandleTracker.cs
- ThreadInterruptedException.cs
- ReadOnlyDataSource.cs
- UnmanagedMemoryAccessor.cs
- PenThreadPool.cs
- BaseTemplateParser.cs
- documentsequencetextcontainer.cs
- WebPartDeleteVerb.cs
- BaseDataBoundControlDesigner.cs
- DefaultValidator.cs
- DataGridState.cs
- autovalidator.cs
- Interlocked.cs
- WorkflowOperationInvoker.cs
- XmlTextReaderImplHelpers.cs
- SqlException.cs
- FixedDocument.cs
- GeneralTransform.cs
- MediaTimeline.cs
- RecommendedAsConfigurableAttribute.cs
- ViewCellSlot.cs
- CuspData.cs
- DoubleAnimation.cs
- HtmlInputButton.cs
- FilterFactory.cs
- KnownTypesProvider.cs
- ElementNotAvailableException.cs