Results 1 to 4 of 4

Thread: Console.WriteLine methods

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474

    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

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 ?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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
  •  



Click Here to Expand Forum to Full Width