Since you post in .NET API, I assume you know at least how to open an Entity in a transaction with the entity's ObjectId. In your case, it is a Polyline being selected:
var polyline=(Polyline)tran.GetObject(polylineId, OpenMode.ForRead);
// the coordinate of the first vertex point,
var firstPt=polyline.GetPoint2dAt(0);