public interface ICustomBuildTarget : IBuildTarget { string CustomProperty { get; set; } } // Implementation example public class CustomBuildTarget : ICustomBuildTarget { public string Name { get; set; } public string CustomProperty { get; set; } }
public class SomeBuildTarget : IBuildTarget { public string Name { get; set; } public void Build() { Console.WriteLine("Building target: " + Name); } } // Usage var target = new SomeBuildTarget { Name = "MyTarget" }; target.Build();This example defines a simple build target class called SomeBuildTarget which implements IBuildTarget and has a 'Name' property and a 'Build' method which writes the target name to the console. This code could be part of a larger build automation library or tool.