Fixed: default kept state between compilations

I know having a property return an instance every call is not a good
design. I get it.
This commit is contained in:
arookas 2016-02-01 05:48:12 -05:00
parent 8246538bbb
commit 5292b55078

View file

@ -5,14 +5,8 @@ using System.Linq;
namespace arookas { namespace arookas {
public abstract class sunImportResolver { public abstract class sunImportResolver {
static sunImportResolver sDefaultResolver;
public static sunImportResolver Default { public static sunImportResolver Default {
get { return sDefaultResolver; } get { return new sunDefaultImportResolver(); }
}
static sunImportResolver() {
sDefaultResolver = new sunDefaultImportResolver();
} }
public abstract void EnterFile(sunScriptFile file); public abstract void EnterFile(sunScriptFile file);