Is Guid - CSharp System

CSharp examples for System:String Match

Description

Is Guid

Demo Code


using System.Text;
using System.Linq;
using System;//  w  w w. j a v a 2s . c o  m

public class Main{
        public static bool IsGuid(this string src)
        {
            Guid placeHolder;
            bool isGuid = Guid.TryParse(src, out placeHolder);
            return isGuid;
        }
}

Related Tutorials