public static void SetId(object instance, Guid id) { var shadow = ShadowId.GetOrCreate(instance); shadow?.SetId(instance, id); }
public static Guid GetId(object instance) { var shadow = ShadowId.GetOrCreate(instance); return(shadow.GetId(instance)); }