Skip to content

Commit

Permalink
Swap order of methods for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco De Salvo committed May 27, 2024
1 parent 7de0836 commit a9e3722
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions RDFSharp/Model/RDFDatatypeRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ public static void AddDatatype(RDFDatatype datatype)
Instance.Register.Add(datatype);
}

/// <summary>
/// Retrieves a standard datatype by seeking presence of its Uri
/// </summary>
public static RDFDatatype GetDatatype(RDFModelEnums.RDFDatatypes datatype)
=> GetDatatype(datatype.GetDatatypeFromEnum());

/// <summary>
/// Retrieves a datatype by seeking presence of its Uri (null if not found)
/// </summary>
public static RDFDatatype GetDatatype(string datatypeUri)
=> Instance.Register.Find(dt => string.Equals(dt.ToString(), datatypeUri?.Trim()));

/// <summary>
/// Retrieves a standard datatype by seeking presence of its Uri
/// </summary>
public static RDFDatatype GetDatatype(RDFModelEnums.RDFDatatypes datatype)
=> GetDatatype(datatype.GetDatatypeFromEnum());
#endregion
}
}

0 comments on commit a9e3722

Please sign in to comment.