Beispiel #1
0
        private void RegisterReader(MethodInfo method)
        {
            if (method.GetParameters().Length != 1)
            {
                return;
            }

            if (method.GetParameters()[0].ParameterType.FullName != typeof(NetworkReader).FullName)
            {
                return;
            }

            if (method.ReturnType == typeof(void))
            {
                return;
            }
            readers.Register(module.ImportReference(method.ReturnType), module.ImportReference(method));
        }
 private void RegisterReader(MethodInfo method)
 {
     readers.Register(module.ImportReference(method.ReturnType), module.ImportReference(method));
 }
Beispiel #3
0
 private void RegisterReader(MethodInfo method)
 {
     ReaderWriterProcessor.Log($"Found reader extension methods: {method.Name}");
     readers.Register(module.ImportReference(method.ReturnType), module.ImportReference(method));
 }