Struct TimedDataSourceRef
A struct that holds a serializable reference to a ITimedDataSource.
Namespace: Unity.LiveCapture
Syntax
public struct TimedDataSourceRef : IEquatable<TimedDataSourceRef>, ISerializationCallbackReceiver
Constructors
TimedDataSourceRef(ITimedDataSource)
Create a serializable reference to a ITimedDataSource.
Declaration
public TimedDataSourceRef(ITimedDataSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimedDataSource | source | The source to reference. |
Methods
Equals(Object)
Returns a value indicating whether this instance is equal to a specified object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(TimedDataSourceRef)
Returns a value indicating whether this instance is equal to a specified ITimedDataSource.
Declaration
public bool Equals(TimedDataSourceRef other)
Parameters
Type | Name | Description |
---|---|---|
TimedDataSourceRef | other | A value to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code for this instance. |
Resolve()
Get the referenced source.
Declaration
public ITimedDataSource Resolve()
Returns
Type | Description |
---|---|
ITimedDataSource | The referenced source, or null if the source is not registered with the TimedDataSourceManager. |
Operators
Equality(TimedDataSourceRef, TimedDataSourceRef)
Determines whether two specified instances of ITimedDataSource are equal.
Declaration
public static bool operator ==(TimedDataSourceRef a, TimedDataSourceRef b)
Parameters
Type | Name | Description |
---|---|---|
TimedDataSourceRef | a | The first instance to compare. |
TimedDataSourceRef | b | The second instance to compare. |
Returns
Type | Description |
---|---|
Boolean |
Inequality(TimedDataSourceRef, TimedDataSourceRef)
Determines whether two specified instances of ITimedDataSource are not equal.
Declaration
public static bool operator !=(TimedDataSourceRef a, TimedDataSourceRef b)
Parameters
Type | Name | Description |
---|---|---|
TimedDataSourceRef | a | The first instance to compare. |
TimedDataSourceRef | b | The second instance to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |