Advertisement
Guest User

Untitled

a guest
Nov 25th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1.                     Polyline polyline = x as Polyline;
  2.                     if (polyline != null)
  3.                         polyline.Points[ix] = DoSomething(x);
  4.  
  5.                     Polygon polygon = x as Polygon;
  6.                     if (polygon != null)
  7.                         polygon.Points[ix] = DoSomething(x);
  8.  
  9.                     MyShape line = x as MyShape;
  10.                     if (line != null)
  11.                         line.Points[ix] = DoSomething(x);
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement