Class ApolloData
Namespace: Apollo
Assembly: Apollo.dll
public sealed class ApolloData
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Data
public Memory<byte> Data { get; }
Property Value
Methods
As<T>()
Attempts to deserialize the data into the specified type.
public T? As<T>()
Returns
T?
The deserialized data or default if the deserialization failed.
Type Parameters
T
The type to deserialize the data into.
As(Type)
public object? As(Type type)
Parameters
type
Type
Returns
From<T>(T)
Creates an ApolloData instance from the specified data.
public static ApolloData From<T>(T data)
Parameters
data
T
The data to create the ApolloData instance from.
Returns
An ApolloData instance created from the specified data.
Type Parameters
T
The type of the data.
ToArray()
public byte[] ToArray()
Returns
byte[]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Operators
implicit operator ApolloData(byte[])
public static implicit operator ApolloData(byte[] data)
Parameters
data
byte[]
Returns
implicit operator byte[](ApolloData)
public static implicit operator byte[](ApolloData data)
Parameters
data
ApolloData
Returns
byte[]