コード例 #1
0
        private string ExtractDomainName()
        {
            if (Expanded_Url.Contains(@"://"))
            {
                Expanded_Url = Expanded_Url.Split(new string[] { "://" }, 2, StringSplitOptions.None)[1];
            }

            return(Expanded_Url.Split('/')[0]);
        }
コード例 #2
0
        private bool ContainsPic()
        {
            bool isPic = false;

            if (Expanded_Url.Contains(@"pic.twitter.com") || Expanded_Url.Contains("instagram"))
            {
                isPic = true;
            }
            return(isPic);
        }