Пример #1
0
		public string GetTypeNestedName(ScriptExportType relativeType)
		{
			if(relativeType == null)
			{
				return Name;
			}
			if (ScriptType.IsEngineObject(Namespace, Name))
			{
				return $"{Namespace}.{Name}";
			}
			if (DeclaringType == null)
			{
				return TypeName;
			}
			if (relativeType == DeclaringType)
			{
				return TypeName;
			}

			string declaringName = DeclaringType.GetTypeNestedName(relativeType);
			return $"{declaringName}.{TypeName}";
		}