Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

referans tipi nedir c#

private void Method1()
{
  MyClass mc = new MyClass();
  mc.x =3;
  mc.y =5;
  MyClass mc2 = mc;
  mc2.x=13;
  mc2.y=15;
  
  Debug.Log(mc.x +" "+mc.y+" "+mc2.x+" "+mc2.y);
// sonuç = 13 15 13 15
}
 
PREVIOUS NEXT
Tagged: #referans #tipi #nedir
ADD COMMENT
Topic
Name
2+9 =