Merge branch 'master' of ssh://float.beyondsoft.de/git/beyondSoft/BeWo
# Conflicts: # BeWoPlanerMobil/Controllers/MainController.cs # BeWoPlanerMobil/Scripts/mainView.js # Host/Multitenancy/demo.config # Service/Plugins/ServiceRecordValidator.cs
This commit is contained in:
@@ -625,6 +625,23 @@ namespace BS.Shared.Core
|
||||
|
||||
return result.Trim(pSeperator?.ToCharArray());
|
||||
}
|
||||
|
||||
public static long? ParseObjectToNullableLong(object object2Parse)
|
||||
{
|
||||
if(object2Parse == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var wasSuccessful = long.TryParse(object2Parse.ToString(), out var output);
|
||||
|
||||
if(wasSuccessful)
|
||||
{
|
||||
return output;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public struct NullCompareResult
|
||||
|
||||
Reference in New Issue
Block a user