1
This commit is contained in:
@@ -14,5 +14,11 @@ namespace ExtensionMethods
|
||||
|
||||
return obj.ToString();
|
||||
}
|
||||
|
||||
public static bool ToBool(this object obj)
|
||||
{
|
||||
bool.TryParse(obj.ToSafeTurnString(), out bool resultVal);
|
||||
return resultVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user