I define an inteface and some other class in uml. when I try generate C# code I get class declaration but not an interface.
// IAnimal.cs
using System;
namespace Animals {
public class IAnimal {
public void Move() {
throw new System.Exception(“Not implemented”);
}
}
}
//cat.cs
using System;
namespace Animals {
public class Cat {
private void Run() {
throw new System.Exception(“Not implemented”);
}
}
}
what I want is like this:
// IAnimal .cs
using System;
namespace Animals {
public interface IAnimal {
void Move() ;
}
}
I would like to let you know the wrongly generate interface as class problem has been fixed. Please update the software to latest patch build (build 20190920ak or later for v16.0, or build 20190920ab or later for v15.2) to get the problem fixed. Details about update to latest patch can be found at
Please make sure you have pressed the “Update to latest patch” button on the left hand side of the dialog right after launching the update program
Feel free to contact me if you require any further information.