3 ms·
Yes, but cleaner syntax for it would be nice. Right now it looks quite messy: private Lazy<string> _someVariable =new Lazy<string>(SomeClass.IOnlyWantToCallY
by gambler 13y ago
Yes, but cleaner syntax for it would be nice. Right now it looks quite messy:
private Lazy<string> _someVariable =new Lazy<string>(SomeClass.IOnlyWantToCallYouOnce);
public string SomeVariable {
get { return _someVariable.Value; }
}
Imagine the same things with a long lambda inside.