Ejemplo n.º 1
0
    private static IEnumerable <string> GenerateMemberStore(IMemberStore memberStore, string contentOfFunctionName, int level)
    {
        if (VERBOSE)
        {
            yield return("\r\n//<MemberStore />\r\n");
        }

        var memberName  = memberStore.MemberName;
        var codeVarName = ExtractCodeVarName(memberName);

        foreach (var expressionCode in GenerateExpression(memberStore.StructExpr, contentOfFunctionName, level))
        {
            yield return(expressionCode);
        }
        yield return(".");

        yield return(codeVarName);

        yield return(" = ");

        foreach (var expressionCode in GenerateExpression(memberStore.SourceExpr, contentOfFunctionName, level))
        {
            yield return(expressionCode);
        }
    }
 public MembersController(IMemberStore memberStore, IEventStore eventStore)
 {
     _memberStore = memberStore;
     _eventStore  = eventStore;
 }