Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / LowerCaseStringConverter.cs / 2 / 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; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HwndSource.cs
- Panel.cs
- DBConnection.cs
- XmlSchemaSimpleContent.cs
- PageThemeCodeDomTreeGenerator.cs
- EndpointAddressMessageFilter.cs
- XmlSchemaType.cs
- HtmlUtf8RawTextWriter.cs
- CodeGroup.cs
- ApplicationActivator.cs
- MemberHolder.cs
- ControlCodeDomSerializer.cs
- EntityModelBuildProvider.cs
- DataTrigger.cs
- XpsDocument.cs
- GroupBoxAutomationPeer.cs
- MemberCollection.cs
- Token.cs
- ControlBindingsCollection.cs
- HtmlTable.cs
- MessageSmuggler.cs
- UnsafeNativeMethods.cs
- SqlInternalConnectionTds.cs
- _TimerThread.cs
- ExpressionValueEditor.cs
- DescendantBaseQuery.cs
- HttpHandlerAction.cs
- AdornerPresentationContext.cs
- WindowsToolbar.cs
- AdapterDictionary.cs
- DataObject.cs
- LinkClickEvent.cs
- BooleanStorage.cs
- DeviceContext.cs
- Conditional.cs
- BaseCollection.cs
- DesignerVerb.cs
- Message.cs
- StackBuilderSink.cs
- SignatureToken.cs
- NetStream.cs
- RichTextBoxConstants.cs
- FrameworkContentElementAutomationPeer.cs
- ToolStripPanelCell.cs
- DbParameterCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CustomBindingElement.cs
- DataGridView.cs
- ColorInterpolationModeValidation.cs
- DataIdProcessor.cs
- linebase.cs
- ZipIOBlockManager.cs
- dsa.cs
- HostedNamedPipeTransportManager.cs
- PathFigureCollection.cs
- PriorityChain.cs
- Validator.cs
- mansign.cs
- ContextStack.cs
- EDesignUtil.cs
- EntityCommandCompilationException.cs
- PropertyInformation.cs
- GenerateTemporaryAssemblyTask.cs
- TdsParserSafeHandles.cs
- UpdateEventArgs.cs
- RelationshipWrapper.cs
- FilterElement.cs
- TextElementCollectionHelper.cs
- IntSumAggregationOperator.cs
- MiniCustomAttributeInfo.cs
- DataGridViewAccessibleObject.cs
- SmtpNtlmAuthenticationModule.cs
- FormViewPageEventArgs.cs
- UrlMappingsSection.cs
- ModuleBuilder.cs
- SqlClientPermission.cs
- SqlNamer.cs
- DependsOnAttribute.cs
- Exception.cs
- TableRowGroup.cs
- DelegatedStream.cs
- Win32Native.cs
- DispatcherOperation.cs
- _NtlmClient.cs
- Pen.cs
- Vector3DCollectionValueSerializer.cs
- safelink.cs
- Fx.cs
- DependencyPropertyConverter.cs
- ResourceBinder.cs
- FixedSOMTextRun.cs
- SelectionUIService.cs
- UITypeEditor.cs
- PathSegmentCollection.cs
- CharUnicodeInfo.cs
- ImageField.cs
- PropertyNames.cs
- ColumnProvider.cs
- XmlIncludeAttribute.cs
- AsyncCompletedEventArgs.cs