public static bool IsVersionBeforeSep09(string xmsVersion) { if (xmsVersion != null && !VersioningHelper.IsPreSeptember09OrInvalidVersion(xmsVersion)) { return(false); } return(true); }
public static bool IsValidMetadataKey(string metadataKey, string version) { bool flag; try { LateBoundMethod lateBoundMethod = MetadataEncoding.validateMetadataMethod; object[] objArray = new object[] { metadataKey, false }; lateBoundMethod(null, objArray); if (VersioningHelper.IsPreSeptember09OrInvalidVersion(version)) { return(true); } return(MetadataEncoding.MetadataKeyRegexForSept09.IsMatch(metadataKey)); } catch (ArgumentException argumentException) { flag = false; } return(flag); }