I have the following C# code:
public class Test
{
public string Docs(ref Innovator inn) ///Innovator is an Object defined in the framework of the application
{
//// some code
string file_name = "filename";
return file_name;
}
public static void Main ()/// here I' m trying to use the above method' s return value inside main()
{
Test t = new Test();
string file_name1 = t.Docs(ref inn);
}
}
This sample code is throwing some errors.
- 'inn' does' t exists in the current context,
- method has some invalid arguments.
Why is this?