SobaScript.Z.VS/BuildComponent.cs
/// <summary>
/// Prepare, parse, and evaluate mixed data through SobaScript supported syntax.
/// </summary>
/// <param name="data">Mixed input data.</param>
/// <returns>Evaluated end value.</returns>
Prepare, parse, and evaluate mixed data through SobaScript supported syntax.
Prepare parse and evaluate mixed data through SobaScript supported syntax .
public override string Eval(string data)
        {
            var point       = EntryPoint(data.Trim());
            string subtype  = point.Key;
            string request  = point.Value;
            LSender.Send(this, $"`{ToString()}`: subtype - `{subtype}`, request - `{request}`", MsgLevel.Trace);
            IPM pm = new PM(request, emsbuild);
            switch(subtype)
            {
                case "cancel": {
                    return StCancel(pm);
                }
                case "projects": {
                    return StProjects(pm);
                }
                case "type": {
                    return StType(pm);
                }
                case "solution": {
                    return StSolution(pm);
                }
            }
            throw new SubtypeNotFoundException(subtype);
        }
public override string Eval ( string data ) { var point = EntryPoint ( data . Trim ( ) ) ; string subtype = point . Key ; string request = point . Value ; LSender . Send ( this , $" ` { ToString ( ) } `: subtype - ` { subtype } `, request - ` { request } ` " , MsgLevel . Trace ) ; IPM pm = new PM ( request , emsbuild ) ; switch ( subtype ) { case " " : { return StCancel ( pm ) ; } case " " : { return StProjects ( pm ) ; } case " " : { return StType ( pm ) ; } case " " : { return StSolution ( pm ) ; } } throw new SubtypeNotFoundException ( subtype ) ; }
Prepare, parse, and evaluate mixed data through SobaScript supported syntax.
Prepare parse and evaluate mixed data through SobaScript supported syntax .
Evaluated end value.
Evaluated end value .
data
string
Mixed input data.
Mixed input data .