Page 1 of 1

Cleanup in Mappings is not working properly

Posted: Wed Feb 19, 2020 12:57 pm
by Geci
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

Re: Cleanup in Mappings is not working properly

Posted: Fri Feb 21, 2020 10:01 am
by RobinHood42
Hi Geci,

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

Cheers,
Robin

Re: Cleanup in Mappings is not working properly

Posted: Mon Mar 02, 2020 3:00 pm
by Geci
Hello Robin,

sorry for my late reply.
TestExample.zip
.

Sincerely yours
GeCi