Cleanup in Mappings is not working properly

Bug reports.
Geci
Posts: 22
Joined: Fri Sep 06, 2013 1:16 pm

Cleanup in Mappings is not working properly

Post by Geci » Wed Feb 19, 2020 12:57 pm

Hello,

the Cleanup in Mappings is not working properly. It doesn't seem to take generic classes into account.

Example

Code: Select all

	internal abstract class Helper<T>
		where T : RepoGenBaseFolder
	{
		protected readonly HelperInformation _helperInformation;

		protected Helper(HelperInformation helperInformation, T control, string basePath = null)
		{
			_helperInformation = helperInformation;
			Control = control;
			if (basePath != null)
			{
				Control.BasePath = basePath;
			}
		}

		protected TestHelper BasicTestHelper => _helperInformation.BasicTestHelper;
		protected Logger Logger => _helperInformation.Logger;
		private protected T Control { get; }
	}

Code: Select all

	internal sealed class EditorAreaControlHelper : Helper<MappingFolders.EditorAreaControlAppFolder>
	{
		public EditorAreaControlHelper(HelperInformation helperInformation, string basePath) :
			base(helperInformation, Mapping.Instance.Controls.EditorAreaControl, basePath)
		{ }
		
		private MappingFolders.WorkingAreaTabFolder WorkingAreaTab => Control.WorkingAreaTab;
	}
The Cleanup displays "WorkingAreaTab" as unused!

Sincerely yours
GeCi

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

Re: Cleanup in Mappings is not working properly

Post by RobinHood42 » Fri Feb 21, 2020 10:01 am

Hi Geci,

It would be great if you could provide build-able code. The sample misses some critical information/classes.

Cheers,
Robin

Geci
Posts: 22
Joined: Fri Sep 06, 2013 1:16 pm

Re: Cleanup in Mappings is not working properly

Post by Geci » Mon Mar 02, 2020 3:00 pm

Hello Robin,

sorry for my late reply.
TestExample.zip
(223.97 KiB) Downloaded 9 times
.

Sincerely yours
GeCi