C# Class Project.Phonebook

Exibir arquivo Open project: dibagaran/cs-2015-7-alpha

Public Methods

Method Description
Add ( Contact contact ) : void
AddContact ( string name, int phone ) : int
List ( ) : string
Search ( string name ) : int
removeContact ( string name ) : bool

Private Methods

Method Description
IndexOf ( string name ) : int

Method Details

Add() public static method

public static Add ( Contact contact ) : void
contact Contact
return void

AddContact() public method

public AddContact ( string name, int phone ) : int
name string
phone int
return int

List() public method

public List ( ) : string
return string

Search() public method

public Search ( string name ) : int
name string
return int

removeContact() public method

public removeContact ( string name ) : bool
name string
return bool