DataUri Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Represents a data uri, e.g. or data:image/gif;base64,.... See http://www.ietf.org/rfc/rfc2397.txt for details.

public class DataUri
Inheritance:
System.Object → DataUri

Constructors

DataUri(String)

Fields

Pattern A regular expression pattern for data uris.

Properties

Data Gets the data.
Encoding Gets the encoding.
MediaType Gets the media type.
Uri Gets the uri.

Methods

ToString()

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.