public mAuth(string authstr) { string[] autharr = authstr.Split('-'); Id = Convert.ToInt32(autharr[0]); Act = (eAct)Convert.ToInt32(autharr[1]); Name = autharr[2]; Key1 = Convert.ToInt32(autharr[3]); Key2 = Convert.ToInt32(autharr[4]); Key3 = Convert.ToInt32(autharr[5]); Type = (eAuthType)Convert.ToInt32(autharr[6]); }
public int set_authtype(eAuthType auth_type) { return(tgcpapi_csharp_set_authtype(handle_, auth_type)); }
private static extern int tgcpapi_csharp_set_authtype(IntPtr handle, eAuthType auth_type);