Exemple #1
0
 public override IBuildIntention <ITryAssignOperation> GetBuildIntention(IConversionContext context)
 {
     var(toBuild, maker) = TryAssignOperation.Create();
     return(new BuildIntention <ITryAssignOperation>(toBuild, () =>
     {
         maker.Build(Left.GetOrThrow().ConvertElementOrThrow(context), Right.GetOrThrow().ConvertElementOrThrow(context));
     }));
 }
 public IBuildIntention <ITryAssignOperation> GetBuildIntention(IConversionContext context)
 {
     var(toBuild, maker) = TryAssignOperation.Create();
     return(new BuildIntention <ITryAssignOperation>(toBuild, () =>
     {
         maker.Build(
             Left.Is1OrThrow().GetValue().ConvertElementOrThrow(context),
             Right.Is1OrThrow().GetValue().ConvertElementOrThrow(context),
             Body.Is1OrThrow().GetValue().ConvertElementOrThrow(context),
             Scope.Is1OrThrow().GetValue().Convert(context));
     }));
 }