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
- CompilationRelaxations.cs
- QuaternionRotation3D.cs
- ReceiveSecurityHeaderElementManager.cs
- DynamicControlParameter.cs
- AttributeProviderAttribute.cs
- Message.cs
- TextDecoration.cs
- TabControl.cs
- FolderLevelBuildProviderCollection.cs
- UIAgentInitializationException.cs
- HiddenField.cs
- NullReferenceException.cs
- PropertySourceInfo.cs
- GuidTagList.cs
- XmlTextWriter.cs
- ConfigurationValidatorAttribute.cs
- IdleTimeoutMonitor.cs
- ConsoleCancelEventArgs.cs
- SyndicationSerializer.cs
- DomainUpDown.cs
- ScrollEventArgs.cs
- SliderAutomationPeer.cs
- ScriptManagerProxy.cs
- Buffer.cs
- LineSegment.cs
- ConfigurationValue.cs
- PrimitiveCodeDomSerializer.cs
- CookieParameter.cs
- SafeFileHandle.cs
- RelationshipWrapper.cs
- LinkArea.cs
- ControlBuilder.cs
- StyleBamlTreeBuilder.cs
- InkCollectionBehavior.cs
- LiteralDesigner.cs
- DrawingContextDrawingContextWalker.cs
- ServiceRoute.cs
- SecurityAttributeGenerationHelper.cs
- ColorIndependentAnimationStorage.cs
- PackageRelationshipSelector.cs
- AssertFilter.cs
- InputLanguageCollection.cs
- Content.cs
- XmlReflectionMember.cs
- WeakEventManager.cs
- SynchronizedCollection.cs
- SamlAction.cs
- DivideByZeroException.cs
- OneOfScalarConst.cs
- CodeGroup.cs
- MissingMemberException.cs
- WebUtil.cs
- HtmlAnchor.cs
- ViewStateException.cs
- CodeTypeDeclaration.cs
- SharedPersonalizationStateInfo.cs
- DataGridItem.cs
- LineVisual.cs
- XmlValueConverter.cs
- httpserverutility.cs
- WebContext.cs
- CultureTable.cs
- SchemaManager.cs
- IChannel.cs
- CodeVariableDeclarationStatement.cs
- RectAnimationClockResource.cs
- ActionMismatchAddressingException.cs
- CodeTypeMemberCollection.cs
- ConnectionPointGlyph.cs
- SQLBinary.cs
- AffineTransform3D.cs
- StringSorter.cs
- PtsHost.cs
- DSASignatureFormatter.cs
- BamlMapTable.cs
- PropertyItemInternal.cs
- TableRowGroupCollection.cs
- ColumnMapCopier.cs
- WindowInteropHelper.cs
- Memoizer.cs
- ExpressionSelection.cs
- RealizationDrawingContextWalker.cs
- ProfileSettings.cs
- PageAsyncTask.cs
- Type.cs
- MulticastOption.cs
- MessageQueueTransaction.cs
- _LoggingObject.cs
- ProtocolViolationException.cs
- AnimatedTypeHelpers.cs
- PropertyItem.cs
- AppendHelper.cs
- SqlCharStream.cs
- SqlStatistics.cs
- SingleResultAttribute.cs
- DataTrigger.cs
- XPathBinder.cs
- OletxResourceManager.cs
- ElementHost.cs
- ObjectTag.cs