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