예제 #1
0
        private static bool FastStringToGridLengthConvert(Type outputType, string input, ref object output)
        {
            if (outputType == typeof(GridLength))
            {
                var gridLengths = GridLength.ParseGridLength(input);

                if (gridLengths.Length > 0)
                {
                    output = gridLengths[0];
                    return(true);
                }
            }

            return(false);
        }