Gets a guid from a string.
The guid corresponding to the string.
The default value is returned if the string is blank, null or is not a guid. No exception is thrown if the string is not a guid.
Guid g1 = MainUtil.GetGuid("", GuidsOld.Null); // {00000000-0000-0000-0000-000000000000}
Guid g2 = MainUtil.GetGuid("{1930BBEB-7805-471A-A3BE-4858AC7CF696}", GuidsOld.Null); // {1930BBEB-7805-471A-A3BE-4858AC7CF696}
MainUtil Class | Sitecore Namespace | MainUtil.GetGuid Overload List