Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7016483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:47:29+00:00 2026-05-27T22:47:29+00:00

I am having trouble setting up this Dynamic Linq Library so i can use

  • 0

I am having trouble setting up this Dynamic Linq Library so i can use Dynamic where clauses. Can someone advise me onhow to add this library to my project and reference correctly.

http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

also seen in the post

Is there a pattern using Linq to dynamically create a filter?

thanks,

Update –

var x = ListofObjects.AsQueryable().Where("Some comparison");

Update –

After adding the Dynamic.cs library my project wont build with a bunch of compilation errors coming from that specific class. all similar to.

The namespace 'System.Linq.Dynamic' already contains a definition for 'DynamicOrdering' 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:47:30+00:00Added an answer on May 27, 2026 at 10:47 pm

    Seems to work fine for me:

    public class SomeType
    {
        public string var1;
        public string var2;
    }
    
    class Program
    {
        static void Main(string[] args)
        {
            var myList = new List<SomeType>();
    
            myList.Add(new SomeType() { var1 = "abc", var2 = "abc" });
            myList.Add(new SomeType() { var1 = "def", var2 = "def" });
    
            foreach (var item in myList.AsQueryable().Where("var1=\"abc\""))
                Console.WriteLine("item.var1 = " + item.var1);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having trouble setting up a website for my wedding. Hope someone can find out
I am having trouble with setting up the open source library JFreeChart for creating
I'm setting up my first symfony project, and am having trouble with the schema.
Java newbie here, I'm having trouble setting a new line in this code: String
I am having trouble setting up VS2010 so I can debug in IIS: I
I'm having trouble setting up this code to export the text in the format
i m having trouble in setting this up. I have created libTest.dylib but I
I am having trouble setting up the configuration of Spring.Net so that I can
I'm having trouble setting fixed widths on columns which use colspan . It seems
I'm having some trouble setting up Apache on Ubuntu. I've been following this guide

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.