public object GetProjectConfigurationPropertyValue(string propertyName) { object obj = (object)null; if (this.EnvDteContainingProject != null) { object propertyValue1 = DteServices.GetPropertyValue("ConfigurationManager", this.EnvDteContainingProject); if (propertyValue1 == null) { return((object)null); } object propertyValue2 = DteServices.GetPropertyValue("ActiveConfiguration", propertyValue1); if (propertyValue2 == null) { return((object)null); } object propertyValue3 = DteServices.GetPropertyValue("Properties", propertyValue2); if (propertyValue3 == null) { return((object)null); } object targetObject = DteServices.InvokeMethod("Item", propertyValue3, (object)propertyName); if (targetObject == null) { return((object)null); } obj = DteServices.GetPropertyValue("Value", targetObject); } return(obj); }
public string GetActiveDocumentPath() { string str = (string)null; object activeDocument = this.GetActiveDocument(); if (activeDocument != null) { str = (string)DteServices.GetPropertyValue("Path", activeDocument); } return(str); }