public static void Main()
    {
        SomeOtherClass thingy = new SomeOtherClass();

        thingy.SomeMethod();
        print();
    }
Exemple #2
0
    public string MethodWithReturn()
    {
        var returnValue = SomeOtherClass.SomeMethod();

        if (returnValue == null)
        {
            throw new InvalidOperationException("Return value of method 'MethodWithReturn' is null.");
        }
        return(returnValue);
    }
Exemple #3
0
 public string MethodWithReturn()
 {
     return(SomeOtherClass.SomeMethod());
 }