Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. /// Gets the key fields and places them in a string
  2.  
  3.  
  4. public class GetKeyFields
  5. {
  6. public GetKeyFields _fields = new GetKeyFields();
  7. }
  8.  
  9. public string keyString
  10. {
  11. get
  12. {
  13. if (keyString.Length == 0)
  14. {
  15. StringBuilder sb = new StringBuilder();
  16. // LOOP THROUGH THE Fields AND BUILD THE KEY
  17. foreach (FieldClass field in this.Fields.**GetKeyFields**())
  18. {
  19. sb.Append(field.Name + ", ");
  20. }
  21. keyString = sb.ToString().TrimEnd(new char[] { ',', ' ' });
  22. }
  23. return keyString;
  24. }
  25. }
  26.  
  27. 'ProfileClass.FieldCollectionClass' does not contain a definition for 'GetKeyFields' and no extension method 'GetKeyFields' accepting a first argument of type 'ProfileClass.FieldCollectionClass' could be found(are you missing a using directive or an assembly reference?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement