C# Class Glipho.OAuth.Providers.Database.Mongo.Consumer

Inheritance: ConsumerStub
显示文件 Open project: Glipho/oauth-providers Class Usage Examples

Private Properties

Property Type Description
FromConsumer Consumer
ToConsumer Database.Consumer

Public Methods

Method Description
Consumer ( ) : System

Initialises a new instance of the Consumer class.

Equals ( Consumer consumer ) : bool

Determines whether the specified Consumer is equal to the current Consumer.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to the current Consumer.

GetHashCode ( ) : int

Serves as a hash function for a Consumer.

ToString ( ) : string

Returns a System.String that represents the current Consumer.

Private Methods

Method Description
FromConsumer ( Database consumer ) : Consumer

Create a new consumer from a database consumer.

ToConsumer ( ) : Database.Consumer

Convert this consumer into a database consumer.

Method Details

Consumer() public method

Initialises a new instance of the Consumer class.
public Consumer ( ) : System
return System

Equals() public method

Determines whether the specified Consumer is equal to the current Consumer.
public Equals ( Consumer consumer ) : bool
consumer Consumer The to compare with the current .
return bool

Equals() public method

Determines whether the specified System.Object is equal to the current Consumer.
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool

GetHashCode() public method

Serves as a hash function for a Consumer.
public GetHashCode ( ) : int
return int

ToString() public method

Returns a System.String that represents the current Consumer.
public ToString ( ) : string
return string