// Helpers for addref and release of local properties. Subclasses can provide // overloads. internal void AddRefResource(DUCE.IResource resource, DUCE.Channel channel) { if (resource != null) { resource.AddRefOnChannel(channel); } }