In the new C# 10 standard namespace can be declared this way :
namespace Namespace1.Namespace2;
instead of this way.
namespace Namespace1.Namespace2 { }
but in this case the file is ignored by TypeWriter.
Example :
namespace Namespace1.Namespace2;
public class MyClass
{
public MyClass(int prop1, string prop1)
{
Prop1 = prop1;
prop2 = prop1;
}
public int Prop1 { get; set; }
public string prop2 { get; set; }
}
is not generated but
namespace Namespace1.Namespace2
{
public class MyClass
{
public MyClass(int prop1, string prop1)
{
Prop1 = prop1;
prop2 = prop1;
}
public int Prop1 { get; set; }
public string prop2 { get; set; }
}
}
In the new C# 10 standard namespace can be declared this way :
namespace Namespace1.Namespace2;
instead of this way.namespace Namespace1.Namespace2 { }
but in this case the file is ignored by TypeWriter.Example :
is not generated but
is generated.