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
- InvalidOleVariantTypeException.cs
- FormsAuthenticationCredentials.cs
- ValidatingReaderNodeData.cs
- ResizeGrip.cs
- ToolStripDropDownButton.cs
- DBNull.cs
- DoubleCollectionValueSerializer.cs
- Codec.cs
- ThicknessAnimation.cs
- PolyLineSegment.cs
- ImageAnimator.cs
- BaseTreeIterator.cs
- SQLBoolean.cs
- ContainerSelectorActiveEvent.cs
- SimpleRecyclingCache.cs
- SynchronizingStream.cs
- OletxVolatileEnlistment.cs
- MinMaxParagraphWidth.cs
- ConditionCollection.cs
- SystemColors.cs
- InfiniteIntConverter.cs
- RadioButton.cs
- IsolatedStorage.cs
- RecordConverter.cs
- SignerInfo.cs
- GenericUriParser.cs
- QuestionEventArgs.cs
- DateTimeHelper.cs
- TextSchema.cs
- ComponentResourceKeyConverter.cs
- TileBrush.cs
- AuthenticationModulesSection.cs
- ObjectQuery_EntitySqlExtensions.cs
- TabControlToolboxItem.cs
- MemberMaps.cs
- XmlStringTable.cs
- XmlValidatingReader.cs
- RangeValidator.cs
- ErrorCodes.cs
- PageAsyncTaskManager.cs
- QilTypeChecker.cs
- SqlProviderManifest.cs
- CompoundFileStorageReference.cs
- EntityViewGenerator.cs
- PropertyPathWorker.cs
- WebPartEditorApplyVerb.cs
- MSAAEventDispatcher.cs
- Mapping.cs
- RowToParametersTransformer.cs
- BooleanSwitch.cs
- Transform3DGroup.cs
- StrokeIntersection.cs
- ModelUIElement3D.cs
- SqlNotificationRequest.cs
- CollectionTraceRecord.cs
- CertificateReferenceElement.cs
- AstNode.cs
- EditorBrowsableAttribute.cs
- FileDialogCustomPlace.cs
- ToolStripContentPanelRenderEventArgs.cs
- SqlCommandBuilder.cs
- EntityDataSourceStatementEditor.cs
- RemotingAttributes.cs
- LightweightEntityWrapper.cs
- ThreadInterruptedException.cs
- InProcStateClientManager.cs
- DataSet.cs
- OutputCacheModule.cs
- ErrorStyle.cs
- ExtendedProtectionPolicy.cs
- DESCryptoServiceProvider.cs
- EpmSourcePathSegment.cs
- BindingCollectionElement.cs
- CharEnumerator.cs
- PageStatePersister.cs
- GridViewDeleteEventArgs.cs
- DbConnectionHelper.cs
- SplitterCancelEvent.cs
- XmlSchemaExporter.cs
- DataGrid.cs
- QueryExpr.cs
- fixedPageContentExtractor.cs
- NullPackagingPolicy.cs
- MetadataItemEmitter.cs
- PropertyCondition.cs
- XmlAttributeProperties.cs
- BinaryUtilClasses.cs
- ServiceHttpModule.cs
- PropertyValueUIItem.cs
- HttpValueCollection.cs
- StringDictionaryWithComparer.cs
- UpdateTracker.cs
- BackoffTimeoutHelper.cs
- ZoneMembershipCondition.cs
- PropagationProtocolsTracing.cs
- ByeMessageCD1.cs
- PanelDesigner.cs
- DocumentGridContextMenu.cs
- DbConnectionOptions.cs
- Pointer.cs