Microsoft.Z3.AST.Translate C# (CSharp) Method

Translate() public method

Translates (copies) the AST to the Context ctx.
public Translate ( Context ctx ) : AST
ctx Context A context
return AST
        public AST Translate(Context ctx)
        {
            Contract.Requires(ctx != null);
            Contract.Ensures(Contract.Result<AST>() != null);

            if (ReferenceEquals(Context, ctx))
                return this;
            else
                return new AST(ctx, Native.Z3_translate(Context.nCtx, NativeObject, ctx.nCtx));
        }