public static void Main() { SomeOtherClass thingy = new SomeOtherClass(); thingy.SomeMethod(); print(); }
public string MethodWithReturn() { var returnValue = SomeOtherClass.SomeMethod(); if (returnValue == null) { throw new InvalidOperationException("Return value of method 'MethodWithReturn' is null."); } return(returnValue); }
public string MethodWithReturn() { return(SomeOtherClass.SomeMethod()); }