Tckn

Field: static readonly Tckn Empty

It's an empty Tckn knowledge.


Method: static Tckn Parse(String)

Creates a Tckn object with the identity of the string type. The ID must match the TC ID algorithm. See for TC identity number algorithm: Türkiye Cumhuriyeti Kimlik Numarası.

    Tckn.Parse("17017251318");
Parameter Name Description
tcknString identity of string type

Error Type: ArgumentNullException (This error is thrown if the value is set null.)

Error Type: FormatException (This error is thrown if the credential does not conform to the TC identity algorithm.)


Property: string Value

Returns the identity information of the string type.


Method: string ToString()

Returns the identity information of the string type.

The result in the ToString method of the default value of Tckn is the empty string .

    default(Tckn).ToString(); //string.Empty

Method: object Clone()

Returns Tckn in the object type by creating a new object with the data.

    var testing = Tckn.Parse("17017251318");

    testing.Equals(testing.Clone()); //true, not same

Method: bool Equals(Object)

Returns true if the given object has the same value as the Tckn object and the data, false otherwise.

Parameter Name Description
obj Object to be compared

Method: bool Equals(Tckn)

Returns true if the given Tckn object has the same value as the data, false otherwise.

Parameter Name Description
other The object of type Tckn to be compared