Attribute constructor has a 'ByRef' parameter of type '|1'; cannot use constructors with byref parameters to apply the attribute. ...