Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / LowerCaseStringConverter.cs / 1305376 / LowerCaseStringConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /***************************************************************************** From machine.config******************************************************************************/ namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; public sealed class LowerCaseStringConverter : TypeConverter { public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) { if (value == null) { return String.Empty; } return ((string)value).ToLower(CultureInfo.InvariantCulture); } public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data) { Debug.Assert(data != null); Debug.Assert(data is string); return ((string)data).ToLower(CultureInfo.InvariantCulture); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableColumnCollection.cs
- TreeView.cs
- LongTypeConverter.cs
- CacheHelper.cs
- AutoGeneratedField.cs
- MediaPlayerState.cs
- IntPtr.cs
- XPathPatternParser.cs
- Codec.cs
- ActivityInterfaces.cs
- IndexingContentUnit.cs
- SelectionEditingBehavior.cs
- ListViewTableCell.cs
- BatchWriter.cs
- ObjectQueryProvider.cs
- ComplexObject.cs
- WebPartEditorOkVerb.cs
- SettingsBindableAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- TargetParameterCountException.cs
- SqlError.cs
- XmlDataFileEditor.cs
- RegexGroup.cs
- Win32Native.cs
- ToolstripProfessionalRenderer.cs
- SQLInt16.cs
- HttpHandler.cs
- Tablet.cs
- LocalTransaction.cs
- RawMouseInputReport.cs
- ThrowHelper.cs
- PenContext.cs
- BeginStoryboard.cs
- TableChangeProcessor.cs
- DefaultValueAttribute.cs
- WizardDesigner.cs
- PackageRelationshipCollection.cs
- RuntimeArgument.cs
- RedirectionProxy.cs
- PnrpPermission.cs
- ClientBuildManager.cs
- IsolatedStorageException.cs
- ProfilePropertyMetadata.cs
- Mutex.cs
- CodeFieldReferenceExpression.cs
- TextBoxBase.cs
- SystemIPInterfaceStatistics.cs
- RandomNumberGenerator.cs
- SettingsProperty.cs
- PropertyGridEditorPart.cs
- ContentHostHelper.cs
- KnowledgeBase.cs
- TargetInvocationException.cs
- Renderer.cs
- JoinTreeSlot.cs
- ExpressionParser.cs
- XmlSchemaObject.cs
- Int32AnimationUsingKeyFrames.cs
- SQLBytesStorage.cs
- TextEditorTables.cs
- GeneralTransform3DTo2DTo3D.cs
- SignedXmlDebugLog.cs
- OdbcErrorCollection.cs
- SourceItem.cs
- StringResourceManager.cs
- NumericPagerField.cs
- SessionStateContainer.cs
- MsmqReceiveParameters.cs
- EncryptedPackageFilter.cs
- TextSelection.cs
- RegexCapture.cs
- BypassElement.cs
- XPathAncestorQuery.cs
- AjaxFrameworkAssemblyAttribute.cs
- SplineKeyFrames.cs
- PrintEvent.cs
- EntityWithKeyStrategy.cs
- ConstraintConverter.cs
- RuntimeIdentifierPropertyAttribute.cs
- GridEntryCollection.cs
- Rfc2898DeriveBytes.cs
- RemotingService.cs
- nulltextcontainer.cs
- StateInitializationDesigner.cs
- RemoteWebConfigurationHostServer.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Event.cs
- ConfigXmlAttribute.cs
- XPathBinder.cs
- ThicknessAnimation.cs
- TransformProviderWrapper.cs
- NamespaceQuery.cs
- LinkedList.cs
- SimpleMailWebEventProvider.cs
- CheckedPointers.cs
- TextTreeRootTextBlock.cs
- UserControlDocumentDesigner.cs
- WCFBuildProvider.cs
- HttpListenerRequest.cs
- Input.cs