public ReflectionResult Get(string property) { ReflectionException lastException = null; foreach (VariableScope scope in SCOPE_ORDER) { IModel model = GetModel(scope); if (model != null) { ReflectionResult reflectionResult = model.Get(property); if (reflectionResult.Partial || reflectionResult.Full) { return(reflectionResult); } if (lastException == null || (reflectionResult.ReflectionException != null && lastException.Nesting < reflectionResult.ReflectionException.Nesting) ) { lastException = reflectionResult.ReflectionException; } } } if (lastException != null) { return(new ReflectionResult { ReflectionException = lastException }); } return(new ReflectionResult()); }
public void PerTestSetUp() { Result = new ReflectionResult(); }
public ReflectionService() { ReflectionResult = new ReflectionResult(); }