static object GetCollabInstance() { if (CollabType == null) { return(null); } return(CollabType.GetProperty("instance") .GetValue(null, null)); }
static bool IsCollabEnabledForCurrentProject(object collabInstance) { MethodInfo InternalIsCollabEnabledForCurrentProject = CollabType.GetMethod("IsCollabEnabledForCurrentProject"); if (InternalIsCollabEnabledForCurrentProject == null) { return(false); } return((bool)InternalIsCollabEnabledForCurrentProject. Invoke(collabInstance, null)); }
static void SetCollabEnabledForCurrentProject(object collabInstance, bool enable) { MethodInfo InternalSetCollabEnabledForCurrentProject = CollabType.GetMethod("SetCollabEnabledForCurrentProject"); if (InternalSetCollabEnabledForCurrentProject == null) { return; } InternalSetCollabEnabledForCurrentProject. Invoke(collabInstance, new object[] { enable }); }
static object GetCollabInstance() { if (CollabType == null) { return(null); } PropertyInfo InternalInstance = CollabType.GetProperty("instance"); if (InternalInstance == null) { return(null); } return(InternalInstance.GetValue(null, null)); }