how to use methods

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 1 year, 8 months ago.

  • Author
    Posts
  • #23579
    Profile photo of Garegin Asatryan
    Garegin Asatryan
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.