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
The following code snippet should raise a warning, since changing InjectionCop annotations on dynamically bound methods is not supported because it would enforce bad design. Current implementation checks fragments of method parameters only, the task is to extend this behavior to support FragmentGenerator attribute and return fragments.
class AnnotatedBaseClass
{
[FragmentGenerator]
[return: CustomType]
public virtual object CustomTypeGenerator()
{
return new object();
}
}
class Inherited : AnnotatedBaseClass
{
[return: Fragment("OtherType")]
public override object CustomTypeGenerator()
{
return new object();
}
}
The text was updated successfully, but these errors were encountered:
The following code snippet should raise a warning, since changing InjectionCop annotations on dynamically bound methods is not supported because it would enforce bad design. Current implementation checks fragments of method parameters only, the task is to extend this behavior to support FragmentGenerator attribute and return fragments.
The text was updated successfully, but these errors were encountered: