You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DynamicallyAccessedMembers annotations on a type will treat the return value of GetType as satisfying the annotation, for a call to this.GetType(), but not for a call to c.GetType() where c is assignable to the annotated type.
This causes a warning on the call to Require(c.GetType()) in the sample below. It's possible to work around this by defining an annotated helper on the type that just returns this.GetType(), but this ideally wouldn't be necessary: