public override object ReadJson( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) { if (reader.Value != null) { return(KerbalstuffApi.ExpandPath(reader.Value.ToString())); } return(null); }
/// <summary> /// Returns the path to the mod's home on KerbalStuff /// </summary> /// <returns>The home.</returns> public Uri GetPageUrl() { return(KerbalstuffApi.ExpandPath(string.Format("/mod/{0}/{1}", id, name))); }