namespace LibGit2Sharp { /// /// Can be used to reference the from which /// an instance was created. /// /// While convenient in some situations (e.g. Checkout branch bound to UI element), /// it is important to ensure instances created from an /// are not used after it is disposed. /// /// /// It's generally better to create and dependant instances /// on demand, with a short lifespan. /// /// public interface IBelongToARepository { /// /// The from which this instance was created. /// /// The returned value should not be disposed. /// /// IRepository Repository { get; } } }