private string GenerateInterfaceSignature() { var ret = _accessModifier.Generate(); if (_isPartial) { ret += " partial"; } ret += $" interface {_name}"; if (Inheritances.Any()) { ret += " : " + string.Join(", ", Inheritances.Select(inheritance => inheritance.GenerateInline())); } return(ret); }
private string GenerateClassSignature() { var ret = _accessModifier.Generate(); if (_isStatic) { ret += " static"; } if (_isPartial) { ret += " partial"; } ret += $" class {_name}"; if (Inheritances.Any()) { ret += " : " + string.Join(", ", Inheritances.Select(inheritance => inheritance.GenerateInline())); } return(ret); }