/// <summary> /// Gets the data-like members and associated data for an object. /// This function can operate only with objects for which <see cref="IsComObject"/> returns true. /// </summary> /// <param name="value">The object for which data members are requested.</param> /// <param name="names">The enumeration of names of data members for which to retrieve values.</param> /// <returns>The collection of pairs that represent data member's names and their data.</returns> internal static IList <KeyValuePair <string, object> > GetDynamicDataMembers(object value, IEnumerable <string> names) { Requires.NotNull(value, nameof(value)); Requires.Condition(IsComObject(value), nameof(value)); return(ComObject.ObjectToComObject(value).GetMembers(names)); }
/// <summary> /// Gets the member names of the data-like members associated with the object. /// This function can operate only with objects for which <see cref="IsComObject"/> returns true. /// </summary> /// <param name="value">The object for which member names are requested.</param> /// <returns>The collection of member names.</returns> internal static IList <string> GetDynamicDataMemberNames(object value) { Requires.NotNull(value, nameof(value)); Requires.Condition(IsComObject(value), nameof(value)); return(ComObject.ObjectToComObject(value).GetMemberNames(true)); }
internal static IList <KeyValuePair <string, object> > GetDynamicDataMembers(object value, IEnumerable <string> names) { return(ComObject.ObjectToComObject(value).GetMembers(names)); }
internal static IList <string> GetDynamicDataMemberNames(object value) { return(ComObject.ObjectToComObject(value).GetMemberNames(true)); }
/// <summary> /// Gets the member names associated with the object. /// This function can operate only with objects for which <see cref="IsComObject"/> returns true. /// </summary> /// <param name="value">The object for which member names are requested.</param> /// <returns>The collection of member names.</returns> public static IEnumerable <string> GetDynamicMemberNames(object value) { return(ComObject.ObjectToComObject(value).GetMemberNames(false)); }