Exemplo n.º 1
0
        public static ITypeOr CreateAndBuild(IVerifiableType left, IVerifiableType right)
        {
            var res = new TypeOr();

            res.Build(left, right);
            return(res);
        }
Exemplo n.º 2
0
        public override IBuildIntention <ITypeOr> GetBuildIntention(IConversionContext context)
        {
            // not sure what I am doing with this ... should it just become a type?

            var(res, builder) = TypeOr.Create();
            return(new BuildIntention <ITypeOr>(res, () => builder.Build(
                                                    Left.GetOrThrow().ConvertTypeOrThrow(context),
                                                    Right.GetOrThrow().ConvertTypeOrThrow(context)
                                                    )));
        }
Exemplo n.º 3
0
        public static (ITypeOr, ITypeOrBuilder) Create()
        {
            var res = new TypeOr();

            return(res, res);
        }