Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Immutable
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Globalization; using System.Threading; namespace Rextester { public class ImmutableRectancle { int Length {get;} int Height {get;} public ImmutableRectancle Grow(int length,int height){ Length = length; Height = height; } public ImmutableRectancle Grow(int length,int height) => new ImmutableRectancle Grow(int Length+length,int Height+height); } public class Program { public static void Main(string[] args) { ImmutableRectancle r = new ImmutableRectancle(5,10); r.Grow(10,10); } } }
run
|
edit
|
history
|
help
0
d
Function Tester
t
Singletone Class
30272 Example1
Mintra url string replace
Swap 2
Regras Recad grupo
Public access specifier
Student Cables