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
- BaseParagraph.cs
- ExpressionBindings.cs
- DbBuffer.cs
- SpellerHighlightLayer.cs
- XmlLangPropertyAttribute.cs
- HiddenField.cs
- ShapingWorkspace.cs
- HotSpot.cs
- PropertyChangedEventManager.cs
- HwndAppCommandInputProvider.cs
- ByteAnimation.cs
- PictureBox.cs
- SmtpSection.cs
- Context.cs
- ContainerUIElement3D.cs
- DataGridComboBoxColumn.cs
- FileDialog.cs
- AutoScrollExpandMessageFilter.cs
- EncodingInfo.cs
- ReachBasicContext.cs
- TextEditorThreadLocalStore.cs
- SqlRowUpdatedEvent.cs
- JsonSerializer.cs
- TextTreeObjectNode.cs
- MemberInfoSerializationHolder.cs
- SvcFileManager.cs
- SchemaImporterExtensionElementCollection.cs
- HttpCookie.cs
- ServiceNameCollection.cs
- SchemaCollectionPreprocessor.cs
- ContextMenuAutomationPeer.cs
- CodeTryCatchFinallyStatement.cs
- XmlCDATASection.cs
- FormDesigner.cs
- FixedDocumentSequencePaginator.cs
- IIS7UserPrincipal.cs
- HtmlTableCell.cs
- SqlException.cs
- SymmetricKeyWrap.cs
- PrintDialog.cs
- ColorTranslator.cs
- WinOEToolBoxItem.cs
- sqlmetadatafactory.cs
- ScriptRegistrationManager.cs
- Rectangle.cs
- TimerElapsedEvenArgs.cs
- AnnotationHighlightLayer.cs
- XmlNamedNodeMap.cs
- EntityContainerEmitter.cs
- _TLSstream.cs
- ActiveDocumentEvent.cs
- ScriptRef.cs
- Debug.cs
- ProfileProvider.cs
- ChannelSinkStacks.cs
- ConfigViewGenerator.cs
- HttpRawResponse.cs
- RankException.cs
- Dispatcher.cs
- TextEndOfSegment.cs
- Crypto.cs
- Model3D.cs
- XmlDocumentSerializer.cs
- TypeConverterHelper.cs
- BuildManager.cs
- NestedContainer.cs
- ReadOnlyDataSourceView.cs
- HyperLinkStyle.cs
- SoapHeaderAttribute.cs
- Content.cs
- LayoutInformation.cs
- CommandManager.cs
- DispatcherExceptionFilterEventArgs.cs
- ZoneButton.cs
- ComponentManagerBroker.cs
- BinaryFormatter.cs
- FragmentQueryKB.cs
- Literal.cs
- EnvelopedPkcs7.cs
- AmbiguousMatchException.cs
- SchemaCollectionCompiler.cs
- SpellerStatusTable.cs
- SqlBooleanMismatchVisitor.cs
- AudioDeviceOut.cs
- CreateUserWizardStep.cs
- ArgumentException.cs
- EventLogPermissionEntryCollection.cs
- WindowsAuthenticationModule.cs
- followingquery.cs
- DbConnectionInternal.cs
- ObjectSet.cs
- RegistrationServices.cs
- WebControlsSection.cs
- Attachment.cs
- ThreadPool.cs
- ProfileParameter.cs
- ToolStripPanel.cs
- ApplicationManager.cs
- ImageBrush.cs
- EditingCoordinator.cs