Class UrlReference<T>
- Namespace
- Stride.Core.Serialization
- Assembly
- Stride.Core.Serialization.dll
Represents a Url to an asset of type T
.
[DataSerializer(typeof(UrlReferenceDataSerializer<>), Mode = DataSerializerGenericMode.GenericArguments)]
public sealed class UrlReference<T> : UrlReferenceBase, IUrlReference where T : class
Type Parameters
T
The type off asset.
- Inheritance
-
UrlReference<T>
- Implements
- Inherited Members
Constructors
UrlReference()
Create a new UrlReference<T> instance.
public UrlReference()
UrlReference(string)
Create a new UrlReference<T> instance.
public UrlReference(string url)
Parameters
url
string
Exceptions
- ArgumentNullException
If
url
isnull
or empty.