Skip to content

Instantly share code, notes, and snippets.

@pcon
Created March 14, 2014 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcon/9548785 to your computer and use it in GitHub Desktop.
Save pcon/9548785 to your computer and use it in GitHub Desktop.
Map<String, Profile> profileMap {
get {
if (profileMap == null) {
profileMap = new Map<String, Profile>();
for (Profile p: [
select Name
from Profile
]) {
profileMap.put(p.Name, p);
}
}
}
set;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment