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
- XmlElementAttribute.cs
- ContextMenuStrip.cs
- ChangePassword.cs
- RelationshipDetailsRow.cs
- XmlToDatasetMap.cs
- HMACRIPEMD160.cs
- UserMapPath.cs
- Registry.cs
- MediaCommands.cs
- FileDialogCustomPlace.cs
- StylusPoint.cs
- SizeIndependentAnimationStorage.cs
- sqlser.cs
- RuntimeHandles.cs
- SizeF.cs
- ExpressionsCollectionConverter.cs
- ELinqQueryState.cs
- ListItemCollection.cs
- HandlerFactoryWrapper.cs
- SequentialOutput.cs
- XD.cs
- Constraint.cs
- NGCSerializationManager.cs
- SafeFileMapViewHandle.cs
- SelectionEditor.cs
- DialogResultConverter.cs
- SiteMapDataSourceView.cs
- SqlGenericUtil.cs
- SizeIndependentAnimationStorage.cs
- ArraySegment.cs
- HostAdapter.cs
- CompositeDispatchFormatter.cs
- UseManagedPresentationElement.cs
- ComAdminInterfaces.cs
- ProviderSettings.cs
- ErrorLog.cs
- CallSiteBinder.cs
- ComponentEvent.cs
- ResetableIterator.cs
- WebPartCloseVerb.cs
- NumericExpr.cs
- DataControlFieldHeaderCell.cs
- XmlBindingWorker.cs
- LinqDataSourceSelectEventArgs.cs
- DelegateHelpers.cs
- SHA512CryptoServiceProvider.cs
- TcpChannelHelper.cs
- DelegateHelpers.cs
- Graphics.cs
- WindowsStatusBar.cs
- AsyncStreamReader.cs
- ScrollBarAutomationPeer.cs
- dataSvcMapFileLoader.cs
- TextDocumentView.cs
- DataServices.cs
- TextModifierScope.cs
- IntegrationExceptionEventArgs.cs
- oledbmetadatacollectionnames.cs
- ConnectionPointConverter.cs
- Utils.cs
- OleDbRowUpdatingEvent.cs
- MatrixKeyFrameCollection.cs
- PassportPrincipal.cs
- FileSystemWatcher.cs
- ColumnResult.cs
- KeyboardDevice.cs
- FilteredDataSetHelper.cs
- MessageBox.cs
- RuleSettings.cs
- TextTreeRootTextBlock.cs
- LayoutTable.cs
- TTSEvent.cs
- AdornerLayer.cs
- AssemblyHash.cs
- DropShadowEffect.cs
- Container.cs
- DataBindingCollectionEditor.cs
- BitmapCache.cs
- Vector3DAnimationBase.cs
- SqlUdtInfo.cs
- GroupBox.cs
- TableProviderWrapper.cs
- ISCIIEncoding.cs
- HtmlInputText.cs
- ParseElementCollection.cs
- SerializableAttribute.cs
- PackageFilter.cs
- StylusPointPropertyInfoDefaults.cs
- TemplateBindingExpression.cs
- BitVector32.cs
- InheritanceContextHelper.cs
- Bold.cs
- ClaimComparer.cs
- WorkflowControlEndpoint.cs
- QuaternionRotation3D.cs
- SiteMapHierarchicalDataSourceView.cs
- PrintDialogException.cs
- VerificationException.cs
- SQLDecimal.cs
- VScrollBar.cs