From a9e3722a56d1c883a4be4741afc9aff680ab42cd Mon Sep 17 00:00:00 2001 From: Marco De Salvo Date: Mon, 27 May 2024 15:56:33 +0200 Subject: [PATCH] Swap order of methods for better readability --- RDFSharp/Model/RDFDatatypeRegister.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/RDFSharp/Model/RDFDatatypeRegister.cs b/RDFSharp/Model/RDFDatatypeRegister.cs index 9240ba0e..a6cb2379 100644 --- a/RDFSharp/Model/RDFDatatypeRegister.cs +++ b/RDFSharp/Model/RDFDatatypeRegister.cs @@ -92,17 +92,17 @@ public static void AddDatatype(RDFDatatype datatype) Instance.Register.Add(datatype); } + /// + /// Retrieves a standard datatype by seeking presence of its Uri + /// + public static RDFDatatype GetDatatype(RDFModelEnums.RDFDatatypes datatype) + => GetDatatype(datatype.GetDatatypeFromEnum()); + /// /// Retrieves a datatype by seeking presence of its Uri (null if not found) /// public static RDFDatatype GetDatatype(string datatypeUri) => Instance.Register.Find(dt => string.Equals(dt.ToString(), datatypeUri?.Trim())); - - /// - /// Retrieves a standard datatype by seeking presence of its Uri - /// - public static RDFDatatype GetDatatype(RDFModelEnums.RDFDatatypes datatype) - => GetDatatype(datatype.GetDatatypeFromEnum()); #endregion } } \ No newline at end of file