File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsModifiers/CS Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ public abstract class Shape
785
785
protected Shape ( string color )
786
786
{
787
787
Color = color ;
788
- Console . WriteLine ( "Created a shape with color {color}." ) ;
788
+ Console . WriteLine ( $ "Created a shape with color { color } .") ;
789
789
}
790
790
791
791
// Abstract method that must be implemented by derived classes
@@ -813,7 +813,7 @@ public class Program
813
813
public static void Main ( string [ ] args )
814
814
{
815
815
Square square = new Square ( "red" , 5 ) ;
816
- Console . WriteLine ( "Area of the square: {square.CalculateArea()}" ) ;
816
+ Console . WriteLine ( $ "Area of the square: { square . CalculateArea ( ) } ") ;
817
817
}
818
818
}
819
819
//</snippet27>
You can’t perform that action at this time.
0 commit comments