/// <summary> /// Gets whether this library is a newer version then another library. /// </summary> /// <param name="otherLibrary">The other library to check the version agaisnt.</param> /// <returns>True if this library is a newer version than the other library.</returns> public bool IsNewerVersionThan(NodeLibrary otherLibrary) => otherLibrary.MajorVersion == MajorVersion ? otherLibrary.MinorVersion == MinorVersion ? otherLibrary.Patch < Patch : MinorVersion < MinorVersion : otherLibrary.MajorVersion < MajorVersion;
/// <summary> /// Creates a new instance of <see cref="NodeModel"/>. /// </summary> /// <param name="nodeTypeFullName">The full type name of the type of this node.</param> /// <param name="dependency">The dependency (plugin) required in order to initialize this node.</param> public NodeModel(string nodeTypeFullName, NodeLibrary dependency) { Name = nodeTypeFullName; Dependency = dependency; }