private string ExpandName(string name) { string str = name; if (!System.Web.Util.StringUtil.StringStartsWith(name, @".\")) { return(str); } if (this.machineName == null) { this.machineName = HttpServerUtility.GetMachineNameInternal().ToLower(CultureInfo.InvariantCulture); } return(this.machineName + name.Substring(1)); }
private string ExpandName(string name) { string ExpandedName = name; if (StringUtil.StringStartsWith(name, @".\")) { if (machineName == null) { machineName = HttpServerUtility.GetMachineNameInternal().ToLower(CultureInfo.InvariantCulture); } ExpandedName = machineName + name.Substring(1); } return(ExpandedName); }