Yeah, but by doing that, its not correct. If you were coding in an other IDE like Visual Studio, you would get a
compile time error because a
List does not contain a method called
IsArc() The McNeel guys were probably nice, and maybe did some exception handling to prevent this error from throwing to the user in the C# script component editor. Also, the component will be messed up with its expire solution routine when its access type is set to item, although it is given a list, it will probably expire itself many more times than just once.
Long story short, start acquiring proper programming practices from the beginning before its to late. And try to learn the basics of programming, such as OOP, methods, variable types, etc. Before rushing and trying to code without really knowing why things work the way they do, or why RhinoCommon was designed the way it is. It will really pay off down the road if you are really serious about learning, and its not just a sunday funday thing or an occasional follow along Garcia Del Castillo’s new YouTube tutorials.