Пример #1
0
			public static FacetCheckResult Check(string value, FacetInfo facet, WhitespaceType whitespaceNormalization)
			{
				if (LengthFacetCheckHelper.ComputeLength(value, whitespaceNormalization) <= facet.intValue * 2)
					return FacetCheckResult.Success;
				return FacetCheckResult.Fail;
			}
Пример #2
0
			public static FacetCheckResult Check (string value, FacetInfo facet, WhitespaceType whitespaceNormalization)
			{
				if (LengthFacetCheckHelper.IsEqual(value, facet.stringValue, whitespaceNormalization))
					return FacetCheckResult.EnumSuccess;
				return FacetCheckResult.EnumFail;
			}