From 8cbb2918c90ea4870ce9ec82e4e8a81b1e8d453f Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 23 Jan 2013 13:25:15 +0000 Subject: [PATCH] Added an implicit string operator conversion to the text generator. --- src/Generator/Utils/TextGenerator.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Generator/Utils/TextGenerator.cs b/src/Generator/Utils/TextGenerator.cs index 555d9a71..a11c5542 100644 --- a/src/Generator/Utils/TextGenerator.cs +++ b/src/Generator/Utils/TextGenerator.cs @@ -93,5 +93,11 @@ namespace Cxxi { return sb.ToString(); } + + public static implicit operator string(TextGenerator tg) + { + return tg.ToString(); + } + } }