Beispiel #1
0
    public static void Main()
    {
        OpCode op = OpCodes.Add;

        foreach (var prp in op.GetType().GetProperties())
        {
            Console.WriteLine("{0} ({1}): {2}", prp.Name,
                              prp.PropertyType.Name, prp.GetValue(op));
        }
    }
Beispiel #2
0
 private static Exception InvalidOpCodeType(OpCode opCode)
 {
     return(new InvalidOperationException($"Invalid OpCode type \"{opCode?.GetType().Name ?? "null"}\"."));
 }