Skip to content

Commit

Permalink
generate partial interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
georghinkel committed Nov 14, 2024
1 parent 2013c83 commit b89a07d
Show file tree
Hide file tree
Showing 14 changed files with 1,547 additions and 1,546 deletions.
2 changes: 1 addition & 1 deletion Models/Models/Meta/IClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace NMF.Models.Meta
[DefaultImplementationTypeAttribute(typeof(Class))]
[XmlDefaultImplementationTypeAttribute(typeof(Class))]
[ModelRepresentationClassAttribute("http://nmf.codeplex.com/nmeta/#//Class")]
public interface IClass : NMF.Models.IModelElement, NMF.Models.Meta.IReferenceType
public partial interface IClass : NMF.Models.IModelElement, NMF.Models.Meta.IReferenceType
{

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion Transformations/Models.MetaTransformation/Meta/Class2Type.cs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,8 @@ protected override CodeTypeDeclaration CreateSeparatePublicInterface(IClass inpu
{
Name = "I" + generatedType.Name,
Attributes = MemberAttributes.Public,
IsInterface = true
IsInterface = true,
IsPartial = true,
};
iface.BaseTypes.Add(typeof(IModelElement).ToTypeReference());
iface.AddAttribute(typeof(DefaultImplementationTypeAttribute), new CodeTypeOfExpression(generatedType.Name));
Expand Down
Loading

0 comments on commit b89a07d

Please sign in to comment.