Пример #1
0
        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);
        }
Пример #2
0
        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);
        }