G
Guest
Hi,
I'm new to C# programming and not sure how to do this, but basically, I
want to create a function exactly like how System.Console.WriteLine()
works.
eg, if I do:
System.Console.WriteLine("A = " + valA + " B = " + valB);
it displays all of the above together.
I want to create my own function which will work like:
SystemLog(??? xyz)
{
....
StreamWriter sw = ...;
System.Console.WriteLine(xyz);
sw.WriteLine(xyz);
....
}
How can I do this?
Thanks!
I'm new to C# programming and not sure how to do this, but basically, I
want to create a function exactly like how System.Console.WriteLine()
works.
eg, if I do:
System.Console.WriteLine("A = " + valA + " B = " + valB);
it displays all of the above together.
I want to create my own function which will work like:
SystemLog(??? xyz)
{
....
StreamWriter sw = ...;
System.Console.WriteLine(xyz);
sw.WriteLine(xyz);
....
}
How can I do this?
Thanks!