Could someone explain How you could write this Python code in C# script?
import rhinoscriptsyntax as rs
for m in data:
if(m!=None and rs.IsCurve(m)):
curve = m
I try this but did not work:
private void RunScript(System.Object data, ref object A)
{
if (data != null){
Print(" Great, Data is not Null! “);
Print(” I found data");
/*
// not work
if (data == Rhino.DocObjects.Custom.CustomCurveObject){
Print(" I found an Object Curve ");
A = data; // data is a Curve!
}
*/
}