MPremkumar319398 (Community Member) asked a question.

Subject : Technology-Specific Input Validation Problems (CWE ID 100)

This error showing the error number where the constructor declared example below

public List<string> ChangedProperties { get; set; }

       public bool ShouldDisable { get; set; }

       public BusinessRecipient()

       {

           ChangedProperties = new List<string>();

       }

I have tried the data annotation solution

[Required]

public List<string> ChangedProperties { get; set; }

       public bool ShouldDisable { get; set; }

       public BusinessRecipient()

       {

           ChangedProperties = new List<string>();

       }


Topics (4)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.