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
- EncoderParameter.cs
- MultiSelector.cs
- BinaryObjectWriter.cs
- ToggleButton.cs
- Control.cs
- WebPartDescriptionCollection.cs
- FontCacheLogic.cs
- HGlobalSafeHandle.cs
- itemelement.cs
- _ChunkParse.cs
- DecimalAverageAggregationOperator.cs
- DataControlField.cs
- XmlSchemaAnnotated.cs
- BamlLocalizableResource.cs
- GregorianCalendar.cs
- Convert.cs
- XmlBinaryReader.cs
- LineBreakRecord.cs
- ResourceAssociationTypeEnd.cs
- TextBoxAutoCompleteSourceConverter.cs
- PolyBezierSegmentFigureLogic.cs
- ButtonChrome.cs
- PrintingPermissionAttribute.cs
- XmlHierarchyData.cs
- DataGridColumnDropSeparator.cs
- securestring.cs
- BufferedReadStream.cs
- Matrix3DConverter.cs
- KeySplineConverter.cs
- XmlFormatMapping.cs
- TextBoxAutoCompleteSourceConverter.cs
- DeviceContexts.cs
- DataGridViewCellCollection.cs
- AttachedPropertyBrowsableAttribute.cs
- SafeHandles.cs
- SecurityTokenParametersEnumerable.cs
- OdbcConnectionString.cs
- BitArray.cs
- SqlDataSource.cs
- SynchronizationValidator.cs
- SrgsRulesCollection.cs
- CustomPopupPlacement.cs
- PagesSection.cs
- AutomationPatternInfo.cs
- BindValidationContext.cs
- DataGridRelationshipRow.cs
- ReadOnlyAttribute.cs
- StylusPointPropertyUnit.cs
- CacheMode.cs
- COM2ComponentEditor.cs
- CodeMemberMethod.cs
- PrivilegedConfigurationManager.cs
- StringToken.cs
- RecipientInfo.cs
- KnownTypesHelper.cs
- SymLanguageType.cs
- ControlBindingsCollection.cs
- JulianCalendar.cs
- TextEditorLists.cs
- ProxyHwnd.cs
- KeyValuePairs.cs
- parserscommon.cs
- DetailsViewInsertEventArgs.cs
- InternalBufferOverflowException.cs
- HttpListenerException.cs
- PropertyGroupDescription.cs
- _FtpControlStream.cs
- AjaxFrameworkAssemblyAttribute.cs
- HttpCacheVary.cs
- Drawing.cs
- DeclarativeCatalogPart.cs
- GestureRecognitionResult.cs
- MediaElement.cs
- AggregateException.cs
- exports.cs
- SessionStateSection.cs
- BamlRecordHelper.cs
- WsatConfiguration.cs
- PrimitiveDataContract.cs
- CodeDefaultValueExpression.cs
- Camera.cs
- SoapServerProtocol.cs
- TransformCryptoHandle.cs
- DataControlField.cs
- AliasExpr.cs
- ChannelHandler.cs
- HttpValueCollection.cs
- BitmapEffectRenderDataResource.cs
- MenuBindingsEditor.cs
- CqlLexer.cs
- Compensate.cs
- Transform3DGroup.cs
- PrimitiveDataContract.cs
- InkCanvasAutomationPeer.cs
- serverconfig.cs
- EditorResources.cs
- KnownTypesHelper.cs
- ColorConverter.cs
- TextInfo.cs
- SecurityHelper.cs