From 802ee476b7336699d9f859ebd79809ad94a7cdbf Mon Sep 17 00:00:00 2001 From: Zoey Goetzinger Date: Wed, 21 Aug 2019 12:20:07 -0500 Subject: [PATCH] Removed unreachable code. --- XmlSchemaClassGenerator/TypeModel.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index af2cf882..47514f3f 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -1284,9 +1284,6 @@ public override CodeExpression GetDefaultValueFor(string defaultString, bool att else if(type == typeof(byte[]) && !string.IsNullOrWhiteSpace(defaultString)) { int numberChars = defaultString.Length; - if(numberChars % 2 == 1) - throw new NotSupportedException(string.Format("Default value {0} is not a valid hexBinary value.", defaultString)); - var byteValues = new CodePrimitiveExpression[numberChars / 2]; for (int i = 0; i < numberChars; i += 2) byteValues[i / 2] = new CodePrimitiveExpression(Convert.ToByte(defaultString.Substring(i, 2), 16));