Method ToImmutableSet ToImmutableSet() Copies the values in this bag to a new immutable bag that uses the same registry as this bag. Declaration public ImmutableSortedMoneyBag ToImmutableSet() Returns Type Description ImmutableSortedMoneyBag