Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Can we fix the parameter values ?

$
0
0

Say for example, we have a function

public string AssignValueOnAvail(string Property in ( "A", "B" ))

{

return "";

}

In this can we fix the input paramter value as in ( "A", "B" ) ?. So that other than these values can't be entered.

As we have check constraint in DB.

Please suggest.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>