Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 3d9cf026 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

Added Helper to check for null properties

parent 42f9f789
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,17 @@ namespace TUGraz.VectoCore.Utils
);
}
public static bool IsAnyNull(this IComponentInputData inputData, params object[] checkForNull)
{
foreach (var o in checkForNull) {
if (o == null) {
return true;
}
}
return false;
}
public static void AddIfContentNotNull(this XElement xElement, XElement xElementToAdd)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment