public static LinkController FromBaseObject(BaseObject baseObj) { if (baseObj == null || baseObj.NativeObject == IntPtr.Zero) { return(null); } LinkController obj = baseObj as LinkController; if (object.Equals(obj, null)) { obj = new LinkController(CreatedWhenConstruct.CWC_NotToCreate); obj.BindNativeObject(baseObj.NativeObject, "CLinkController"); obj.IncreaseCast(); } return(obj); }