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
- ToolConsole.cs
- FillRuleValidation.cs
- CollectionChangedEventManager.cs
- ThemeInfoAttribute.cs
- ZipIORawDataFileBlock.cs
- XmlCustomFormatter.cs
- ContextMenu.cs
- SqlNodeTypeOperators.cs
- DynamicPropertyHolder.cs
- FixedPageStructure.cs
- InvalidDataException.cs
- MetadataUtilsSmi.cs
- TextRange.cs
- InternalBase.cs
- UrlEncodedParameterWriter.cs
- ResourceReader.cs
- EntityKey.cs
- FontEmbeddingManager.cs
- CurrencyManager.cs
- Signature.cs
- DefaultValueTypeConverter.cs
- Int64.cs
- FormViewPagerRow.cs
- DataControlFieldCell.cs
- ColorTransformHelper.cs
- RSAProtectedConfigurationProvider.cs
- AttachedAnnotation.cs
- TextTreeUndo.cs
- ModifyActivitiesPropertyDescriptor.cs
- SoapMessage.cs
- DesignTimeTemplateParser.cs
- Evaluator.cs
- PolicyStatement.cs
- SimpleModelProvider.cs
- DataKey.cs
- CapiHashAlgorithm.cs
- AsyncResult.cs
- TimeoutTimer.cs
- RecordManager.cs
- BypassElement.cs
- FunctionParameter.cs
- ProtocolsConfigurationHandler.cs
- PathGeometry.cs
- WebControlsSection.cs
- OleDbParameter.cs
- FontWeightConverter.cs
- X500Name.cs
- HashHelper.cs
- ThreadStartException.cs
- WebPartManager.cs
- DetailsViewRow.cs
- FacetChecker.cs
- PathTooLongException.cs
- counter.cs
- RegisteredScript.cs
- ConfigurationStrings.cs
- CorrelationManager.cs
- OperationContextScope.cs
- DateTime.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridCheckBoxColumn.cs
- MailMessage.cs
- Win32SafeHandles.cs
- _AutoWebProxyScriptEngine.cs
- BlobPersonalizationState.cs
- CngKeyCreationParameters.cs
- ObjectConverter.cs
- cryptoapiTransform.cs
- LocalizableAttribute.cs
- ExpressionTextBox.xaml.cs
- BitmapMetadataBlob.cs
- ListParaClient.cs
- ContainerFilterService.cs
- ZoomPercentageConverter.cs
- ListViewItem.cs
- PointAnimationBase.cs
- LicenseContext.cs
- BaseProcessor.cs
- WindowsListViewSubItem.cs
- ThemeDirectoryCompiler.cs
- HttpListener.cs
- ProfileManager.cs
- ToolStripSeparator.cs
- RelatedView.cs
- XmlTypeAttribute.cs
- SecurityElementBase.cs
- DataColumnMapping.cs
- IxmlLineInfo.cs
- PersonalizationEntry.cs
- BinaryMethodMessage.cs
- Simplifier.cs
- XsltFunctions.cs
- safex509handles.cs
- ButtonChrome.cs
- documentsequencetextpointer.cs
- ParserExtension.cs
- ellipse.cs
- Html32TextWriter.cs
- Int16Animation.cs
- IResourceProvider.cs