private ObjectToComObject ( object rcw ) : ComObject | ||
rcw | object | |
리턴 | ComObject |
/// <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) { ContractUtils.RequiresNotNull(value, "value"); ContractUtils.Requires(IsComObject(value), "value", Strings.ComObjectExpected); return(ComObject.ObjectToComObject(value).GetMemberNames(false)); }
internal static IList <string> GetDynamicDataMemberNames(object value) { ContractUtils.RequiresNotNull(value, "value"); ContractUtils.Requires(IsComObject(value), "value", Strings.ComObjectExpected); return(ComObject.ObjectToComObject(value).GetMemberNames(true)); }
internal static IList <KeyValuePair <string, object> > GetDynamicDataMembers(object value, IEnumerable <string> names) { ContractUtils.RequiresNotNull(value, nameof(value)); ContractUtils.Requires(IsComObject(value), nameof(value), Strings.ComObjectExpected); return(ComObject.ObjectToComObject(value).GetMembers(names)); }