xamarin.ios - Disposing a cloned object also disposes the reference object -


uicolor foo = (uicolor) bar.copy(); foo.dispose(); 

i observing above code causes bar disposed. based on documentation, foo should new instance of bar , therefore expect bar not affected changes made foo.

can explain why happening? perhaps i'm misunderstanding something... if so, there way copy of uicolor without having copy on of property values myself?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -