public bool IsParameterFilePath(string parameterName) { if (_prop != null && _prop.Owner != null) { IWebResourceFileUser wrf = _prop.Owner.ObjectInstance as IWebResourceFileUser; if (wrf != null) { return(wrf.IsParameterFilePath(_prop.Name)); } } return(false); }
public string CreateWebFileAddress(string localFilePath, string parameterName) { if (_prop != null && _prop.Owner != null) { IWebResourceFileUser wrf = _prop.Owner.ObjectInstance as IWebResourceFileUser; if (wrf != null) { if (wrf.IsParameterFilePath(_prop.Name)) { return(wrf.CreateWebFileAddress(localFilePath, _prop.Name)); } } } return(null); }