Hi
is there a "percentage type" in c#, or how do I specify that a
parameter to my method may only take integer values from 0 to 100?
For example:
public bool Reject(Guid guid, Percent percent)
{
// do stuff...
return true;
}
Would I need to create my own type for this; or just check an "int"
value supplied and reject it if it is outside my bounds?
Thanks,
Peter
--
is there a "percentage type" in c#, or how do I specify that a
parameter to my method may only take integer values from 0 to 100?
For example:
public bool Reject(Guid guid, Percent percent)
{
// do stuff...
return true;
}
Would I need to create my own type for this; or just check an "int"
value supplied and reject it if it is outside my bounds?
Thanks,
Peter
--
Comment