WritePrimitiveValue() 공개 메소드

public WritePrimitiveValue ( object value, object data = null, string literalValue = null ) : void
value object
data object
literalValue string
리턴 void
예제 #1
0
        public static string PrintPrimitiveValue(object value)
        {
            TextWriter            writer      = new StringWriter();
            TextWriterTokenWriter tokenWriter = new TextWriterTokenWriter(writer);

            tokenWriter.WritePrimitiveValue(value, CSharpMetadataTextColorProvider.Instance.GetColor(value));
            return(writer.ToString());
        }
        public static string PrintPrimitiveValue(object value)
        {
            TextWriter            writer      = new StringWriter();
            TextWriterTokenWriter tokenWriter = new TextWriterTokenWriter(writer);

            tokenWriter.WritePrimitiveValue(value);
            return(writer.ToString());
        }
		public static string PrintPrimitiveValue(object value)
		{
			TextWriter writer = new StringWriter();
			TextWriterTokenWriter tokenWriter = new TextWriterTokenWriter(writer);
			tokenWriter.WritePrimitiveValue(value);
			return writer.ToString();
		}
예제 #4
0
		public static string PrintPrimitiveValue(object value)
		{
			TextWriter writer = new StringWriter();
			TextWriterTokenWriter tokenWriter = new TextWriterTokenWriter(writer);
			tokenWriter.WritePrimitiveValue(value, CSharpMetadataTextColorProvider.Instance.GetColor(value));
			return writer.ToString();
		}