GetDesignOrientation(this cAreaObj obj, string Name) { eAreaDesignOrientation DesignOrientation; DesignOrientation = default(eAreaDesignOrientation); var res = obj.GetDesignOrientation(Name, ref DesignOrientation); return(DesignOrientation); }