Move All Types to Files does not move classes marked with the attribute [Serializable] or [Serializable()].
With the code below, MyClassThree and MyClassFive will remain in the original file.
However, all five classes are recognized in the initial selection dialog.
Adding class constructors does not change the behavior.
Original Code:
C#using System;
namespace MyNamespace
{
class MyClassOne
{
string Name { get; set; }
}
class MyClassTwo
{
string Name { get; set; }
}
[Serializable]
class MyClassThree
{
string Name { get; set; }
}
class MyClassFour
{
string Name { get; set; }
}
[Serializable]
class MyClassFive
{
string Name { get; set; }
}
}
Selection Dialog:
Resulting Files:
Remaining Code in MyClass.cs:
C#using System;
namespace MyNamespace
{
[Serializable]
class MyClassThree
{
string Name { get; set; }
}
[Serializable]
class MyClassFive
{
string Name { get; set; }
}
}
Hi,
Thank you for reaching out to us and sharing the detailed explanation of the issue.
I managed to reproduce the problematic behavior locally and forwarded this ticket to our R&D team for further research. Please bear with us.
We will update this thread once we have news.