private static object MergeWithFriend(object profile, object friend) { ProfileCardData profileCardData = ProfileCardData.Create(profile, friend); if (friend != null) { profileCardData.IsFriend = true; } return(profileCardData); }
public int GetIndexFromZuneTag(string tagToFind) { int num1 = -1; int num2 = 0; if (this.Content != null && !string.IsNullOrEmpty(tagToFind)) { foreach (object data in Content) { if (ProfileCardData.GetDataProviderObject(data) is DataProviderObject dataProviderObject && SignIn.TagsMatch(dataProviderObject.GetProperty("ZuneTag") as string, tagToFind)) { num1 = num2; break; } ++num2; } } return(num1); }
public static object MergeProfile(object item1, object item2) => ProfileCardData.Create(item1, item2);