how to move the FromPoint of a line to a particular point location

Discussion created by yashika.sareen on Aug 30, 2010
Hi every1,
I have 2 layers l1 and l2.
l1 is point layer and l2 is polyline layer
now i want to move the Topoint(endpoint) of the line to a point location in l1.
i want the code in c#.can any1 help.
i used the following code snippet

but it doesnot show the required changed

please help.