how to use methods

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 3 years, 3 months ago.

  • Author
  • #23579

    Garegin Asatryan

    I've tried understanding how to use methods, but still am unclear on how to read their "spec" in get-member.
    Is there a guide on how to understand how the descriptions for methods should be read?
    for example
    string ToString(), string ToString(string format), string ToString(System.IFormatProvider provider), string
    doesn't tell me how I should can/use this method.

  • #23581

    Don Jones

    Get-Member can't really give you documentation. Search MSDN for the type name, e.g., System.String. That'll get you the class documentation. Many methods, like ToString, provide multiple means of using them, called overrides. Think of them as different parameter sets for the method. The docs will include them all.

You must be logged in to reply to this topic.