Пример #1
0
 public string PrintScalar(ScalarGraphType type)
 {
     return "scalar {0}".ToFormat(type.Name);
 }
Пример #2
0
        private object ValueFromScalar(ScalarGraphType scalar, object input)
        {
            if (input is IValue)
            {
                return scalar.ParseLiteral((IValue)input);
            }

            return scalar.ParseValue(input);
        }