static T GetMethodDelegate <T>(UnmanagedLibrary library) where T : class { var methodName = RemoveStringSuffix(typeof(T).Name, "_delegate"); return(library.GetNativeMethodDelegate <T>(methodName)); }