/// <summary> /// Determines if the specified objects are equal. /// </summary> /// <param name="left"></param> /// <param name="right"></param> /// <returns></returns> public static bool Equals(IMixedRealitySpatialAwarenessDataProvider left, IMixedRealitySpatialAwarenessDataProvider right) { return(left.Equals(right)); }
private bool Equals(IMixedRealitySpatialAwarenessDataProvider other) { return(other != null && SourceId == other.SourceId && string.Equals(SourceName, other.SourceName)); }
/// <summary> /// Used to initialize/reset the event and populate the data. /// </summary> /// <param name="spatialAwarenessObserver"></param> /// <param name="id"></param> /// <param name="spatialObject"></param> public void Initialize(IMixedRealitySpatialAwarenessDataProvider spatialAwarenessObserver, int id, T spatialObject) { BaseInitialize(spatialAwarenessObserver); Id = id; SpatialObject = spatialObject; }