private void AddChannel(IntPtr list, PixelChannel channel) { IntPtr instance = NativeMoments.GetInstance(list, channel); ChannelMoments result = ChannelMoments.Create(channel, instance); if (result != null) { _channels.Add(result.Channel, result); } }