public BusinessObjectWithIdentityProxy(IBusinessObjectWithIdentity obj) { ArgumentUtility.CheckNotNull("obj", obj); _uniqueIdentifier = obj.UniqueIdentifier; _displayName = obj.GetAccessibleDisplayName(); }
/// <summary> /// Returns the string to be used in the drop down list for the specified <see cref="IBusinessObjectWithIdentity"/>. /// </summary> /// <param name="businessObject"> The <see cref="IBusinessObjectWithIdentity"/> to get the display name for. </param> /// <returns> The display name for the specified <see cref="IBusinessObjectWithIdentity"/>. </returns> /// <remarks> /// <para> /// Override this method to change the way the display name is composed. /// </para><para> /// The default implementation used the <see cref="IBusinessObjectWithIdentity.DisplayName"/> property to get the display name. /// </para> /// </remarks> protected virtual string GetDisplayName(IBusinessObjectWithIdentity businessObject) { ArgumentUtility.CheckNotNull("businessObject", businessObject); return(businessObject.GetAccessibleDisplayName()); }