The field that I access is of type List<EntityNetPlayer>
, and the EntityNetPlayer
class is internal (from an external assembly).
How do I make a List field to that class?
public static object GetAlivePlayers(object instance) =>
instance.GetType()
.GetField("AlivePlayers", BindingFlags.Instance |BindingFlags.NonPublic)
.GetValue(instance)
Aucun commentaire:
Enregistrer un commentaire