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 -

python - Getting next two indexes regardless of current index -

ruby - Prevent Custom Validation Error on Association -