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
- Codec.cs
- Part.cs
- ConfigurationStrings.cs
- ContentHostHelper.cs
- PropertyPathConverter.cs
- XmlnsCache.cs
- MessagePartProtectionMode.cs
- XmlAggregates.cs
- Number.cs
- FlowDocumentFormatter.cs
- XmlObjectSerializerReadContext.cs
- CodeDesigner.cs
- AsymmetricKeyExchangeFormatter.cs
- Publisher.cs
- XmlJsonReader.cs
- COM2FontConverter.cs
- ColorAnimationBase.cs
- HMACSHA1.cs
- InputElement.cs
- ItemsControl.cs
- DictionaryTraceRecord.cs
- WebPartUserCapability.cs
- WebServiceMethodData.cs
- KoreanLunisolarCalendar.cs
- InstalledVoice.cs
- WebWorkflowRole.cs
- VersionedStream.cs
- FullTextLine.cs
- OpenTypeCommon.cs
- ClassDataContract.cs
- DirectoryInfo.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ValidationResults.cs
- TraceSection.cs
- TextTrailingWordEllipsis.cs
- RowUpdatedEventArgs.cs
- TokenDescriptor.cs
- PathFigure.cs
- DocumentGridPage.cs
- ColorContextHelper.cs
- ClassData.cs
- ExpandSegment.cs
- TextRenderer.cs
- CodeAssignStatement.cs
- ThemeableAttribute.cs
- TextTreeRootNode.cs
- EnumCodeDomSerializer.cs
- LoginName.cs
- SmiEventSink_DeferedProcessing.cs
- SqlFacetAttribute.cs
- ColorMatrix.cs
- HtmlImage.cs
- BufferedGraphicsManager.cs
- Stroke2.cs
- ParamArrayAttribute.cs
- FullTextBreakpoint.cs
- EventToken.cs
- CqlQuery.cs
- PreDigestedSignedInfo.cs
- BuildResultCache.cs
- NoResizeHandleGlyph.cs
- ParseElementCollection.cs
- ColumnBinding.cs
- NonParentingControl.cs
- TreeNodeStyleCollection.cs
- InstanceDataCollectionCollection.cs
- FormViewDeleteEventArgs.cs
- ClientSettingsProvider.cs
- UrlPropertyAttribute.cs
- XsltFunctions.cs
- FtpRequestCacheValidator.cs
- DrawingContext.cs
- NetNamedPipeSecurityMode.cs
- CompilerGlobalScopeAttribute.cs
- CodeTypeParameter.cs
- FrugalList.cs
- SecuritySessionSecurityTokenProvider.cs
- BuildManager.cs
- ContextStaticAttribute.cs
- CodeTypeDelegate.cs
- DataBindingCollection.cs
- RouteUrlExpressionBuilder.cs
- PageSettings.cs
- ContentControl.cs
- TextBox.cs
- Crypto.cs
- ResumeStoryboard.cs
- HttpCacheVaryByContentEncodings.cs
- ListSurrogate.cs
- DataBindingCollection.cs
- DataProtectionSecurityStateEncoder.cs
- StreamResourceInfo.cs
- StaticDataManager.cs
- CriticalExceptions.cs
- HttpServerProtocol.cs
- X509Utils.cs
- EventItfInfo.cs
- RoleBoolean.cs
- DESCryptoServiceProvider.cs
- TypeBrowser.xaml.cs