What is static function in c#?

Static function is another term for a static method. It allows you to execute the function without creating an instance of its defining class. They are similar to global functions. An example of a static function could be: ConvertFromFarenheitToCelsius with a signature as follows: public static double ConvertFromFarenheitToCelsius (string valToConvert)

{ //Code }

0 comments:

Post a Comment