Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public static Response DoIt(ADUser user)
  2. {
  3. string search = "(cn=" + user.name.Trim() + ")";
  4. // More code lines
  5. }
  6.  
  7. string search = string.Format("(cn={0})", user.name.Trim());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement