This variation in syntax is in fact quite refined and can lead to a "gotcha" that's explained by Bill Wagner in a very article entitled @Jenix In that situation, It can be a technique instead of a property. You'd reference it somewhere else like var someString = Foo.HelloWorld(); The one https://propertyingurugram.in/godrej-properties-buys-15-acre-land-for-rs-403-crore-in-gurugram-from-microtek/