public override string ToString(string format) { if (format == ObjectKey.ShortFormat) { return(LocalKeyPrefix + localKey); } else if (format == ObjectKey.DatabaseFormat) { return(parent.ToString(ObjectKey.DatabaseFormat) + SeparatorChar + LocalKeyPrefix + localKey.ToString()); } else if (format == ObjectKey.FullFormat) { return(parent.ToString(ObjectKey.FullFormat) + SeparatorChar + LocalKeyPrefix + localKey); } else { throw new InvalidOperationException("Invalid key format: " + format); } }
public override string ToString() { return(OwnerKey.ToString() + Separator + Key.ToString()); }