public string GetTypeNestedName(ScriptExportType relativeType) { string typeName = TypeName; if (DeclaringType == null) { return(TypeName); } if (relativeType == DeclaringType) { return(TypeName); } string declaringName = NestType.GetTypeNestedName(relativeType); return($"{declaringName}.{typeName}"); }
public string GetTypeNestedName(ScriptExportType relativeType) { if (relativeType == null) { return(NestedName); } if (ScriptType.IsEngineObject(Namespace, NestedName)) { return($"{Namespace}.{NestedName}"); } if (DeclaringType == null) { return(TypeName); } if (relativeType == DeclaringType) { return(TypeName); } string declaringName = NestType.GetTypeNestedName(relativeType); return($"{declaringName}.{TypeName}"); }