DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.5.0-beta6766" />

 CoEdge

public class CoEdge : DesignScriptEntity
using Autodesk.DesignScript.Interfaces; using Autodesk.DesignScript.Runtime; using System.Collections.Generic; using System.Linq; namespace Autodesk.DesignScript.Geometry { [IsVisibleInDynamoLibrary(false)] public class CoEdge : DesignScriptEntity { internal ICoEdgeEntity CoEdgeEntity => HostImpl as ICoEdgeEntity; public CoEdge Previous => Wrap(CoEdgeEntity.get_Previous(), true); public CoEdge Next => Wrap(CoEdgeEntity.get_Next(), true); public CoEdge Partner => Wrap(CoEdgeEntity.get_Partner(), true); public Edge Edge => Edge.Wrap(CoEdgeEntity.get_Edge(), true); public Loop Loop => Loop.Wrap(CoEdgeEntity.get_Loop(), true); public Vertex StartVertex => Vertex.Wrap(CoEdgeEntity.get_StartVertex(), true); public Vertex EndVertex => Vertex.Wrap(CoEdgeEntity.get_EndVertex(), true); public bool Reversed => CoEdgeEntity.get_Reversed(); public Curve ParameterCurve => Curve.Wrap(CoEdgeEntity.get_ParameterCurve(), true); internal CoEdge(ICoEdgeEntity host, bool persist) : base(host, persist) { } public override string ToString() { return "CoEdge(StartVertex = " + StartVertex?.ToString() + ", EndVertex = " + EndVertex?.ToString() + ", Reversed = " + Reversed.ToString() + ")"; } internal static CoEdge Wrap(ICoEdgeEntity host, bool persist = true) { if (host == null) return null; return new CoEdge(host, persist); } internal static CoEdge[] Wrap(ICoEdgeEntity[] hosts, bool persist = true) { return (from x in hosts select Wrap(x, persist)).ToArray(); } internal static CoEdge[][] Wrap(ICoEdgeEntity[][] hosts, bool persist = true) { return (from x in hosts select Wrap(x, persist)).ToArray(); } internal static ICoEdgeEntity[][] Unwrap(CoEdge[][] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static ICoEdgeEntity[] Unwrap(CoEdge[] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static ICoEdgeEntity[] Unwrap(IEnumerable<CoEdge> o) { return (from x in o select Unwrap(x)).ToArray(); } internal static ICoEdgeEntity Unwrap(CoEdge o) { return o.CoEdgeEntity; } } }