protected override string BeginFile() { return($"// Date: {GenerationTime:O}\r\n" + $"// Base URL: {Api.BaseUrl}\r\n" + $"// Source: {Api.Title} ({Api.Version})\r\n" + "\r\n" + string.Join("", UsingDirectives.Select(name => $"using {name};\r\n")) + "// ReSharper disable InconsistentNaming\r\n" + "\r\n"); }
protected override string BeginFile() { return($"// Date: {GenerationTime:O}\r\n" + $"// Base URL: {Api.BaseUrl}\r\n" + $"// Source: {Api.Title} ({Api.Version})\r\n" + "\r\n" + $"package {Namespace};\r\n" + "\r\n" + string.Join("", UsingDirectives.Select(name => $"import {name};\r\n")) + "\r\n"); }
protected UsingDirectiveList GetUsingDirectiveList() => Any(UsingDirectives) || Any(UsingStaticDirectives) ? UsingDirectiveLists.Create( (UsingDirectives?.Select(each => DevOps.Primitives.CSharp.Helpers.Common.UsingDirectives.Using(each)) ?? new UsingDirective[] { }) .Concat((UsingStaticDirectives?.Select(each => DevOps.Primitives.CSharp.Helpers.Common.UsingDirectives.UsingStatic(each)) ?? new UsingDirective[] { })).ToArray()) : null;