OpenSim.Region.ScriptEngine.Shared.LSL_Types.key.Parse2Key C# (CSharp) Метод

Parse2Key() статический публичный Метод

static public Parse2Key ( string s ) : bool
s string
Результат bool
            static public bool Parse2Key(string s)
            {
                Regex isuuid = new Regex(@"^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$", RegexOptions.Compiled);
                if (isuuid.IsMatch(s))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }