public FixedPersonalData ReadFixedPersonalData() { EID_FIXED_PERSONAL_DATA nativeFixedPersonalData = new EID_FIXED_PERSONAL_DATA(); var nativeResult = NativeMethods.EidReadFixedPersonalData(ref nativeFixedPersonalData); CheckNativeResult(nativeResult); FixedPersonalData result = new FixedPersonalData(nativeFixedPersonalData); return result; }
public FixedPersonalData(EID_FIXED_PERSONAL_DATA nativeData) { PersonalNumber = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.personalNumber)); Surname = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.surname)); GivenName = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.givenName)); ParentGivenName = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.parentGivenName)); Sex = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.sex)); PlaceOfBirth = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.placeOfBirth)); StateOfBirth = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.stateOfBirth)); DateOfBirth = Encoding.UTF8.GetString(nativeData.dateOfBirth); CommunityOfBirth = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.communityOfBirth)); }
public FixedPersonalData(EID_FIXED_PERSONAL_DATA nativeData) { PersonalNumber = Encoding.UTF8.GetString(nativeData.personalNumber, 0, nativeData.personalNumberSize); Surname = Encoding.UTF8.GetString(nativeData.surname, 0, nativeData.surnameSize); GivenName = Encoding.UTF8.GetString(nativeData.givenName, 0, nativeData.givenNameSize); ParentGivenName = Encoding.UTF8.GetString(nativeData.parentGivenName, 0, nativeData.parentGivenNameSize); Sex = Encoding.UTF8.GetString(nativeData.sex, 0, nativeData.sexSize); PlaceOfBirth = Encoding.UTF8.GetString(nativeData.placeOfBirth, 0, nativeData.placeOfBirthSize); StateOfBirth = Encoding.UTF8.GetString(nativeData.stateOfBirth, 0, nativeData.stateOfBirthSize); DateOfBirth = Encoding.UTF8.GetString(nativeData.dateOfBirth, 0, nativeData.dateOfBirthSize); CommunityOfBirth = Encoding.UTF8.GetString(nativeData.communityOfBirth, 0, nativeData.communityOfBirthSize); }
public static extern int EidReadFixedPersonalData(ref EID_FIXED_PERSONAL_DATA pData);