Struct TimedDataSourceRef
A struct that holds a serializable reference to a ITimed
Implements
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
[Serializable]
public struct TimedDataSourceRef : ISerializationCallbackReceiver
Constructors
TimedDataSourceRef(ITimedDataSource)
Create a serializable reference to a ITimed
Declaration
public TimedDataSourceRef(ITimedDataSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimed |
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 |
---|---|
bool | true if |
Overrides
Equals(TimedDataSourceRef)
Returns a value indicating whether this instance is equal to a specified ITimed
Declaration
public bool Equals(TimedDataSourceRef other)
Parameters
Type | Name | Description |
---|---|---|
Timed |
other | A value to compare with this instance. |
Returns
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code for this instance. |
Overrides
Resolve()
Get the referenced source.
Declaration
public ITimedDataSource Resolve()
Returns
Type | Description |
---|---|
ITimed |
The referenced source, or null if the source is not registered with the Timed |
Operators
operator ==(TimedDataSourceRef, TimedDataSourceRef)
Determines whether two specified instances of ITimed
Declaration
public static bool operator ==(TimedDataSourceRef a, TimedDataSourceRef b)
Parameters
Type | Name | Description |
---|---|---|
Timed |
a | The first instance to compare. |
Timed |
b | The second instance to compare. |
Returns
operator !=(TimedDataSourceRef, TimedDataSourceRef)
Determines whether two specified instances of ITimed
Declaration
public static bool operator !=(TimedDataSourceRef a, TimedDataSourceRef b)
Parameters
Type | Name | Description |
---|---|---|
Timed |
a | The first instance to compare. |
Timed |
b | The second instance to compare. |