static Type MessageFilterOutByRef (Type type) { return type == null ? null : type.IsByRef ? type.GetElementType () : type; }