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

php - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

python - matplotlib equivalent for Ubuntu servers with no GUI? -