public object Query(IComposer composer) { IComposer composerToUse = ComposerOverride ?? composer; if (composerToUse == null) { throw new ArgumentNullException("composer"); } return(composerToUse.GetVariable(VariableName)); }
// GetVariable overloads public static Lazy <object> LazyGetVariable(this IComposer composer, string name) { return(new Lazy <object>(() => composer.GetVariable(name))); }