|
-
Dec 12th, 2003, 09:31 PM
#1
Thread Starter
Frenzied Member
Console.WriteLine methods
I don't understand the difference between these two methods and why the latter can not be used in Vb .NET, C# and JScript (???) . Would you please explain?
Thanks
--------------------------
Console.WriteLine Method (String, Object, Object, Object)
Writes the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
--------------------------
Console.WriteLine Method (String, Object, Object, Object, Object, ...)
Writes the specified objects and variable length parameter list, followed by the current line terminator, to the standard output stream using the specified format information.
This method is not CLS-compliant.
[Visual Basic] This method cannot be used in Visual Basic.
[C#] This method cannot be used in C#.
[JScript] This method cannot be used in JScript. ??? (Shouldn't it be J#??)
Last edited by Lunatic3; Dec 12th, 2003 at 11:28 PM.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Dec 13th, 2003, 05:27 AM
#2
Sleep mode
I can use it in C# plus I'm sure I can in VB.NET as well . Does your problem have to do with some overloaded versions of that method ?
-
Dec 13th, 2003, 05:29 AM
#3
Thread Starter
Frenzied Member
As you see one of the overload methods is marked as not available in Vb.NET and C#, ... But I dont understand the differences between those two overload methods i mentioned earlier.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Dec 13th, 2003, 05:38 AM
#4
Sleep mode
I don't know really and I wouldn't bother thinking of a good answer but it might be for objects being passed between the methods (you know in unmanaged environemt between languages) . I hate Console Apps anyways
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|