mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 09:09:25 +08:00 
			
		
		
		
	Adds helper overloads for Markup calls without args
Without specific overloads without the args string.format will get called even if it's not needed. This closes #309
This commit is contained in:
		 Phil Scott
					Phil Scott
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							7f6f2437b1
						
					
				
				
					commit
					b17eabaa1f
				
			| @@ -7,6 +7,15 @@ namespace Spectre.Console | |||||||
|     /// </summary> |     /// </summary> | ||||||
|     public static partial class AnsiConsole |     public static partial class AnsiConsole | ||||||
|     { |     { | ||||||
|  |         /// <summary> | ||||||
|  |         /// Writes the specified markup to the console. | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="value">The value to write.</param> | ||||||
|  |         public static void Markup(string value) | ||||||
|  |         { | ||||||
|  |             Console.Markup(value); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// Writes the specified markup to the console. |         /// Writes the specified markup to the console. | ||||||
|         /// </summary> |         /// </summary> | ||||||
| @@ -28,6 +37,15 @@ namespace Spectre.Console | |||||||
|             Console.Markup(provider, format, args); |             Console.Markup(provider, format, args); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// Writes the specified markup, followed by the current line terminator, to the console. | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="value">The value to write.</param> | ||||||
|  |         public static void MarkupLine(string value) | ||||||
|  |         { | ||||||
|  |             Console.MarkupLine(value); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// Writes the specified markup, followed by the current line terminator, to the console. |         /// Writes the specified markup, followed by the current line terminator, to the console. | ||||||
|         /// </summary> |         /// </summary> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user