Class NDISourceInfo
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
NDI source information.
public class NDISourceInfo : IComparableInheritance
Implements
Inherited Members
Constructors
NDISourceInfo(string, string)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.NDISourceInfo class.
public NDISourceInfo(string name, string url)Parameters
NDISourceInfo(Device)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.NDISourceInfo class.
public NDISourceInfo(Device device)Parameters
deviceDevice-
The device.
Remarks
Defensively reads each property: different NDI device-provider versions /
GStreamer plugins emit slightly different property names, and on some
GLib# bindings GValue.Val is null for an absent field rather
than throwing. Falls back to Empty for any missing or
non-readable property so VisioForge.Core.Types.X.Sources.NDISourceInfo.Name / VisioForge.Core.Types.X.Sources.NDISourceInfo.URL are never
null and downstream consumers (CompareTo, dedup checks) cannot NRE.
Properties
Name
Gets or sets the name of the source.
public string Name { get; set; }Property Value
URL
Gets or sets the URL.
public string URL { get; set; }Property Value
Methods
CompareTo(object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(object obj)Parameters
objobject-
An object to compare with this instance.
Returns
- int
-
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes objin the sort order.Zero This instance occurs in the same position in the sort order as obj.Greater than zero This instance follows objin the sort order.
ToString()
Returns a String that represents this instance.
public override string ToString()Returns
Remarks
Round-3 LOW #383: returns Empty (not the literal "Not set") when both VisioForge.Core.Types.X.Sources.NDISourceInfo.Name and VisioForge.Core.Types.X.Sources.NDISourceInfo.URL are empty. The previous hardcoded English literal would surface verbatim in non-English UI bindings (WPF / MAUI / Avalonia ItemsControls binding to the source list); returning empty lets the host UI culture supply its own fallback string via DataTemplate / converter / TargetNullValue.