Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / HtmlString.cs / 1305376 / HtmlString.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web { // Simple objects that wraps a string that is assumed to not need HTML encoded. // It implements IHtmlString, so when calling HttpUtility.HtmlEncode(htmlString), the string won't be encoded. public class HtmlString: IHtmlString { private string _htmlString; public HtmlString(string value) { _htmlString = value; } public string ToHtmlString() { return _htmlString; } public override string ToString() { return _htmlString; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web { // Simple objects that wraps a string that is assumed to not need HTML encoded. // It implements IHtmlString, so when calling HttpUtility.HtmlEncode(htmlString), the string won't be encoded. public class HtmlString: IHtmlString { private string _htmlString; public HtmlString(string value) { _htmlString = value; } public string ToHtmlString() { return _htmlString; } public override string ToString() { return _htmlString; } } } // 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
- DisplayClaim.cs
- UserControl.cs
- NotifyParentPropertyAttribute.cs
- GPRECT.cs
- ParameterReplacerVisitor.cs
- translator.cs
- EncodingInfo.cs
- PerformanceCounterLib.cs
- PermissionSet.cs
- XsdDuration.cs
- ObjectIDGenerator.cs
- Point.cs
- ProvideValueServiceProvider.cs
- OleDbFactory.cs
- ListItemsPage.cs
- ClientTarget.cs
- CombinedGeometry.cs
- PrivilegeNotHeldException.cs
- ValidationUtility.cs
- DataBinding.cs
- ConfigurationValue.cs
- EventLogEntryCollection.cs
- DataReaderContainer.cs
- StylusPointProperties.cs
- PolyBezierSegment.cs
- Symbol.cs
- TextChangedEventArgs.cs
- XamlSerializerUtil.cs
- AsnEncodedData.cs
- ToolStripOverflowButton.cs
- Variant.cs
- NameValueConfigurationElement.cs
- DoubleStorage.cs
- ByteKeyFrameCollection.cs
- UpdateTranslator.cs
- DictionaryItemsCollection.cs
- UriGenerator.cs
- KnownTypesHelper.cs
- Vector3D.cs
- SqlMethodCallConverter.cs
- WindowsAuthenticationModule.cs
- WebPartConnectionsDisconnectVerb.cs
- HtmlImage.cs
- AutomationElementCollection.cs
- XPathExpr.cs
- SoapServerProtocol.cs
- XslTransform.cs
- PrimitiveSchema.cs
- RawStylusSystemGestureInputReport.cs
- Table.cs
- RotateTransform3D.cs
- DescriptionAttribute.cs
- XmlChildEnumerator.cs
- TextParaLineResult.cs
- DataTableMappingCollection.cs
- SqlMethods.cs
- SignatureToken.cs
- ListView.cs
- GeometryModel3D.cs
- User.cs
- InternalConfigRoot.cs
- Stackframe.cs
- SafeNativeMethods.cs
- _NtlmClient.cs
- BackgroundFormatInfo.cs
- GenericEnumerator.cs
- EmptyEnumerable.cs
- SimpleTypeResolver.cs
- ThemeDirectoryCompiler.cs
- DataPagerFieldCommandEventArgs.cs
- DataGridViewCellCollection.cs
- Funcletizer.cs
- AdornedElementPlaceholder.cs
- WebControlsSection.cs
- SqlProvider.cs
- ImageKeyConverter.cs
- DataServiceOperationContext.cs
- InstanceNormalEvent.cs
- Timer.cs
- listviewsubitemcollectioneditor.cs
- ColorAnimationUsingKeyFrames.cs
- TableDetailsCollection.cs
- ServiceThrottle.cs
- ColorTransformHelper.cs
- CharStorage.cs
- InkPresenterAutomationPeer.cs
- TextureBrush.cs
- MemoryMappedViewAccessor.cs
- CollectionChange.cs
- RuntimeIdentifierPropertyAttribute.cs
- WebPartConnectionsDisconnectVerb.cs
- HttpListenerElement.cs
- KeyFrames.cs
- BindingsSection.cs
- DerivedKeySecurityToken.cs
- PreviewKeyDownEventArgs.cs
- UIElement.cs
- UpdateInfo.cs
- SerializationStore.cs
- ToolStripRendererSwitcher.cs