36
A) In the following code, will the method DataTools.LoadSearchList() only be called once, or every time the property is being accessed?
public static IEnumerable<string> SearchWordList
{
get
{
return DataTools.LoadSearchList();
}
}
B) Is there any difference to this?
public static IEnumerable<string> SearchWordList = DataTools.LoadSearchList();