Driver/SpannerSchemaRetriever.cs
/// <summary>
/// Determines the length in the string specified. Can either by (number) or (max), where 'number' is any positive integer.
/// </summary>
/// <param name="lengthWrapped"></param>
/// <returns></returns>
Determines the length in the string specified. Can either by (number) or (max), where 'number' is any positive integer.
Determines the length in the string specified . Can either by ( number ) or ( max ) where ' number ' is any positive integer .
private int DetermineMaxLength(string lengthWrapped)
		{
			var lengthSpecification = lengthWrapped.Replace("(", "").Replace(")", "");
			if(lengthSpecification == "max")
			{
				return 0;
			}
			int.TryParse(lengthSpecification, out var length);
			return length;
		}
private int DetermineMaxLength ( string lengthWrapped ) { var lengthSpecification = lengthWrapped . Replace ( " " , " " ) . Replace ( " " , " " ) ; if ( lengthSpecification == " " ) { return 0 ; } int . TryParse ( lengthSpecification , out var length ) ; return length ; }
Determines the length in the string specified.
Determines the length in the string specified .
None
lengthWrapped
string
None