From f398852bbba09744abf916e36426672f7966626c Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 16 Sep 2019 03:26:03 +0200 Subject: [PATCH] Added missing binding flags --- src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs b/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs index faa65d0b..f913da95 100644 --- a/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs +++ b/src/ComputeSharp.Shaders/Translation/ShaderHashCodeProvider.cs @@ -77,7 +77,7 @@ namespace ComputeSharp.Shaders.Translation // Unroll the member access MethodInfo - validateDelegateInfo = typeof(ShaderHashCodeProvider).GetMethod(nameof(ValidateDelegate)), + validateDelegateInfo = typeof(ShaderHashCodeProvider).GetMethod(nameof(ValidateDelegate), BindingFlags.NonPublic | BindingFlags.Static), getMethodInfo = typeof(Delegate).GetProperty(nameof(Delegate.Method)).GetMethod, getHashCodeInfo = typeof(object).GetMethod(nameof(GetHashCode)); foreach (FieldInfo fieldInfo in fieldInfos)