Hi,
I am facing trouble, while Arranging value of a variable inside a Private Method. Below is a sample code snippet for the scenario that i am working on, which has a Private static method. In method "SomeMethod", i want to arrange the call "someObject.MethodReturnsTrueOrFalse(someValue)".
Can anybody give me resolution on the same?
public class SomeClass
{
private static void SomeMethod()
{
int someValue = 10;
Foo someObject = new Foo();
var result = someObject.MethodReturnsTrueOrFalse(someValue);
if(result)
{
//do some operation
}
}
}
Thanks In advance :)
Sagar
I am facing trouble, while Arranging value of a variable inside a Private Method. Below is a sample code snippet for the scenario that i am working on, which has a Private static method. In method "SomeMethod", i want to arrange the call "someObject.MethodReturnsTrueOrFalse(someValue)".
Can anybody give me resolution on the same?
public class SomeClass
{
private static void SomeMethod()
{
int someValue = 10;
Foo someObject = new Foo();
var result = someObject.MethodReturnsTrueOrFalse(someValue);
if(result)
{
//do some operation
}
}
}
Thanks In advance :)
Sagar