make mirror on github.com
This commit is contained in:
parent
baed3c9e08
commit
528dcabf59
@ -1,2 +1,4 @@
|
||||
# BlubbFish.Utils (Utils)
|
||||
Library containing helpfull utils
|
||||
|
||||
Maybe you find this Repo on Github. This is a mirror from [here](https://git.blubbfish.net/vs_utils/Utils).
|
@ -49,10 +49,12 @@ namespace BlubbFish.Utils {
|
||||
FieldInfo field = o.GetType().GetField(name);
|
||||
return field.IsPublic ? field.GetValue(o) : null;
|
||||
}
|
||||
|
||||
public static Object GetField(this Type o, String name) {
|
||||
FieldInfo field = o.GetField(name);
|
||||
return field.IsPublic ? field.GetValue(o) : null;
|
||||
}
|
||||
|
||||
public static T GetEvent<T>(this Object o, String name) {
|
||||
FieldInfo field = o.GetType().GetField(name, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
return (T)field?.GetValue(o);
|
||||
|
Loading…
Reference in New Issue
Block a user