Class UrlReferenceBase
- Namespace
- Stride.Core.Serialization
- Assembly
- Stride.Core.Serialization.dll
Base class for IUrlReference implementations
[DataContract("urlref", Inherited = true)]
[DataStyle(DataStyle.Compact)]
public abstract class UrlReferenceBase : IUrlReference
- Inheritance
-
UrlReferenceBase
- Implements
- Derived
Constructors
UrlReferenceBase()
Create a new UrlReferenceBase instance.
protected UrlReferenceBase()
UrlReferenceBase(string)
Create a new UrlReferenceBase instance.
protected UrlReferenceBase(string url)
Parameters
url
string
Exceptions
- ArgumentNullException
If
url
isnull
or empty.
Properties
IsEmpty
Gets whether the url is null
or empty.
public bool IsEmpty { get; }
Property Value
Url
Gets the Url of the referenced asset.
[DataMember(10)]
public string Url { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.