stewartrae


Member since 05/24/2011

Name: Stewart Rae

Location: Melbourne, Australia

2 snippets

1156 profile views

0 Comment(s) Posted

View their favorites

their Tags


Profile

Achievement

first submission:submitting first snipplet

stewartrae's Recent Snippets



« Prev 1 Next »
A simple, thread-safe wrapper class for lazy-loading data into an instance on-demand (i.e. when the instance is first accessed.) Usage: LazyLoader<Foo> l = new LazyLoader<Foo>(() => Foo.LoadFromDataSource("DB Connection String")); // For acc...
2 896 posted 12 years ago by stewartrae
Ever wanted a method that can truncate a string, but only on a word boundary? This method works like Substring() but doesn't snip a string in the middle of a word, i.e. it only truncates the string on a word boundary. Useful for producing a summary f...
1 981 posted 12 years ago by stewartrae
« Prev 1 Next »