Advertisement
Guest User

Untitled

a guest
May 29th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. ObservableCollection<Type> collection = new ObservableCollection<Type>();
  2.  
  3. Type localInstanceOfType = collection[index];
  4.  
  5. // this is clearing the collection[index].SubCollection
  6. // AND localInstanceOfType.SubCollection
  7. localInstanceOfType.SubCollection.Clear();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement