vb6 - Is this code creating a getter? I am trying to translate this to C# -
private samples collection public function count() integer count = samples.count end function i trying translate code c#. trying understand code's logic. have code,
public int count {get; set;} this written in c#.
no, if says function, means function. conversely, if said property property , could (optionally) contain getter.
the precise equivalent is:
public int count() { return samples.count; } where may have been tripped looking @ calling code - in vb, parentheses optional when calling parameterless function, may see code invokes above function saying count rather count().
Comments
Post a Comment