Exemplo n.º 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));
        }
Exemplo n.º 2
0
 private void RegisterReader(MethodInfo method)
 {
     readers.Register(module.ImportReference(method.ReturnType), module.ImportReference(method));
 }
Exemplo n.º 3
0
 private void RegisterReader(MethodInfo method)
 {
     ReaderWriterProcessor.Log($"Found reader extension methods: {method.Name}");
     readers.Register(module.ImportReference(method.ReturnType), module.ImportReference(method));
 }