public DisqusIdentifierInfo GetIdentifier(string Identifier) { if (!Identifier.StartsWith("wnsdisqus-")) { return(null); } Identifier = Regex.Replace(Identifier, "wnsdisqus-", string.Empty, RegexOptions.IgnoreCase); Identifier = Regex.Replace(Identifier, "::", ":", RegexOptions.IgnoreCase); string strSplitter = ":"; string[] arrValues = Identifier.Split(strSplitter.ToCharArray()); DisqusIdentifierInfo oInfo = new DisqusIdentifierInfo(); oInfo.TabId = Convert.ToInt32(arrValues[0]); oInfo.TabModuleId = Convert.ToInt32(arrValues[1]); oInfo.GUID = Convert.ToString(arrValues[2]); oInfo.RawUrl = Convert.ToString(arrValues[3]); return(oInfo); }
public DisqusIdentifierInfo GetIdentifier(string Identifier) { if (!Identifier.StartsWith("wnsdisqus-")) return null; Identifier = Regex.Replace(Identifier, "wnsdisqus-", string.Empty, RegexOptions.IgnoreCase); Identifier = Regex.Replace(Identifier, "::", ":", RegexOptions.IgnoreCase); string strSplitter = ":"; string[] arrValues = Identifier.Split(strSplitter.ToCharArray()); DisqusIdentifierInfo oInfo = new DisqusIdentifierInfo(); oInfo.TabId = Convert.ToInt32(arrValues[0]); oInfo.TabModuleId = Convert.ToInt32(arrValues[1]); oInfo.GUID = Convert.ToString(arrValues[2]); oInfo.RawUrl = Convert.ToString(arrValues[3]); return oInfo; }