Fixed a missing dot in namespaces in generated code

This commit is contained in:
Mohammad Hadi Hosseinpour 2017-04-07 06:17:42 +04:30
parent 8055ab3162
commit 4cb286aab1

View file

@ -465,7 +465,7 @@ namespace TeleSharp.Generator
public static string GetNameSpace(string type, string targetns) public static string GetNameSpace(string type, string targetns)
{ {
if (type.IndexOf('.') != -1) if (type.IndexOf('.') != -1)
return targetns + FormatName(type.Split('.')[0]); return targetns + "." + FormatName(type.Split('.')[0]);
else else
return targetns; return targetns;
} }