Advertisement
Guest User

Untitled

a guest
May 26th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public class Invoice
  2. {
  3. public int Id_record { get; private set; }
  4. public int EmployeeID { get; private set; }
  5. }
  6.  
  7. Invoice inv = new Invoice();
  8. string s1 = inv.EmployeeID.ToString(); // returns: "Employee ID is: {0}."
  9. string s2 = inv.Id_record.ToString(); // returns original value as string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement