DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Adding Existing Framework in Xcode 4 and Getting Distinct Values in LinQ

Adding Existing Framework in Xcode 4 and Getting Distinct Values in LinQ

Senthil Kumar user avatar by
Senthil Kumar
·
Nov. 29, 14 · Java Zone · Interview
Like (0)
Save
Tweet
4.69K Views

Join the DZone community and get the full member experience.

Join For Free

How to Add Existing Framework in Xcode 4

1. Launch the Project Navigator .
2. Select the project.
3. Select the target.
4. Select the tab “Build Phases”.
5. Expand the “Link Binaries with Libraries” and then click the + button.
6. Select the framework and drag them to the Frameworks group.


How to Get an Array of Distinct Values from List Using LinQ

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace GinktageConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Employee> employees = new List<Employee>();
            employees.Add(new Employee { Name = "Praveen", Experience = 6 });
            employees.Add(new Employee { Name = "Naveen", Experience = 4 });
            employees.Add(new Employee { Name = "Praveen", Experience = 1 });

            var query = (from employee in employees
                         select employee.Name).Distinct().ToArray();
            foreach(var item in query)
            {
                Console.WriteLine("Name : " + item + "\n");
                
            }
            Console.ReadLine();
        }
    }
    public class Employee
    {
        public string Name { get; set; }
        public int Experience { get; set; }
    }
}


Framework XCode

Published at DZone with permission of Senthil Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Querying Kafka Topics Using Presto
  • Maven Tutorial: Nice and Easy [Video]
  • Why I'm Choosing Pulumi Over Terraform
  • Debugging Deadlocks and Race Conditions

Comments

Java Partner Resources

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo