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
- SqlInfoMessageEvent.cs
- ObjectDataSourceFilteringEventArgs.cs
- Viewport3DVisual.cs
- TrustLevelCollection.cs
- FactoryGenerator.cs
- EditingMode.cs
- SiteMapDesignerDataSourceView.cs
- SymmetricKey.cs
- XpsResourceDictionary.cs
- RootProfilePropertySettingsCollection.cs
- TcpDuplicateContext.cs
- MissingFieldException.cs
- TableLayoutPanel.cs
- Set.cs
- SlotInfo.cs
- WorkflowServiceInstance.cs
- SslStream.cs
- Utils.cs
- PersonalizationDictionary.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TreeNodeBindingCollection.cs
- PermissionSetTriple.cs
- TemplateControlBuildProvider.cs
- FormatVersion.cs
- SQLChars.cs
- DataGridViewColumnCollection.cs
- XmlSchemaAnyAttribute.cs
- Stackframe.cs
- ResourcePermissionBaseEntry.cs
- AnnotationElement.cs
- QuotaThrottle.cs
- XsdDuration.cs
- AuthenticationModulesSection.cs
- BindToObject.cs
- PasswordTextContainer.cs
- VirtualDirectoryMappingCollection.cs
- PointCollectionConverter.cs
- BinaryUtilClasses.cs
- PageThemeCodeDomTreeGenerator.cs
- DESCryptoServiceProvider.cs
- CounterCreationData.cs
- DescriptionAttribute.cs
- ChtmlTextWriter.cs
- CodeDirectoryCompiler.cs
- DrawingAttributeSerializer.cs
- XmlUnspecifiedAttribute.cs
- MaskInputRejectedEventArgs.cs
- HostExecutionContextManager.cs
- Root.cs
- GroupBox.cs
- ConfigurationManager.cs
- MessageBox.cs
- HttpServerVarsCollection.cs
- AsyncOperation.cs
- EdmFunctionAttribute.cs
- ListGeneralPage.cs
- PtsHost.cs
- IdentityElement.cs
- StringCollection.cs
- XmlQueryContext.cs
- EdmScalarPropertyAttribute.cs
- XmlSchemaObjectTable.cs
- ProfilePropertyNameValidator.cs
- EntityDataSourceStatementEditorForm.cs
- PopOutPanel.cs
- ConfigurationLoader.cs
- EdmComplexPropertyAttribute.cs
- FilterQueryOptionExpression.cs
- KeyTimeConverter.cs
- StaticTextPointer.cs
- XmlNode.cs
- ConfigurationSettings.cs
- UIHelper.cs
- complextypematerializer.cs
- Cursor.cs
- XNameTypeConverter.cs
- IssuedTokenParametersEndpointAddressElement.cs
- IdentifierCollection.cs
- SqlDataSourceStatusEventArgs.cs
- XPathBuilder.cs
- ItemCollectionEditor.cs
- Metadata.cs
- COAUTHINFO.cs
- Menu.cs
- AssemblyGen.cs
- Exceptions.cs
- MSG.cs
- DrawingContextDrawingContextWalker.cs
- sortedlist.cs
- XmlSchemaDatatype.cs
- StringUtil.cs
- View.cs
- HtmlInputHidden.cs
- SqlReferenceCollection.cs
- RayHitTestParameters.cs
- MergeFilterQuery.cs
- RefreshEventArgs.cs
- RadioButton.cs
- HttpInputStream.cs
- DataSourceSelectArguments.cs