This commit is contained in:
PastSaid
2024-05-15 13:56:09 +08:00
parent 16fbd10312
commit 0a17c23e54
43 changed files with 1299 additions and 309 deletions

View File

@@ -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;
}
}
}