Show / Hide Table of Contents

Class StructuredMarkupObjectAdapter

An implementation of IGetsStructuredMarkup which wraps any object, exposing its Object.ToString() method via GetMarkupAsync().

Inheritance
System.Object
StructuredMarkupObjectAdapter
Implements
IGetsStructuredMarkup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions
Assembly: ZptSharp.Abstractions.dll
Syntax
public class StructuredMarkupObjectAdapter : IGetsStructuredMarkup
Remarks

Please read the documentation for IGetsStructuredMarkup relating to security concerns and markup sanitisation before using this object.

Constructors

| Improve this Doc View Source

StructuredMarkupObjectAdapter(Object)

Initializes a new instance of StructuredMarkupObjectAdapter.

Declaration
public StructuredMarkupObjectAdapter(object obj)
Parameters
Type Name Description
System.Object obj

The object instance to wrap.

Methods

| Improve this Doc View Source

GetMarkupAsync()

Gets the structured markup from the current instance.

Declaration
public Task<string> GetMarkupAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.String>

A task which returns a structured markup string (an HTML or XML fragment).

Implements

IGetsStructuredMarkup
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX