using System; namespace XGame.Framework.Map { public class MapKey { public string Key { get; private set; } /// /// MapView的类型 /// public Type MapViewType { get; private set; } public MapKey(string key, Type mapViewType) { Key = key; MapViewType = mapViewType; } public static implicit operator string(MapKey mapKey) => mapKey.Key; public override string ToString() => Key; } }