V
Victor Shepelev
Hello.
Today I've stubled upon an interesting article at CodeProject:
Karmencita: an object query language for .NET
http://www.codeproject.com/csharp/Karmencita.asp
The do something like
-----
// initialize the data source
// (in this case a Stack of Customers)
Stack<Customer> customers = .....
// initialize Karmencita with
// the type of object to be queries
ObjectQuery<Customer> oq =
new ObjectQuery<Customer>();
// write the query
string query = "Name = [Thor the Mighty]" +
" and IsMale = true and BirthDate" +
" < [1,1,1910]";
//run the query
Customer[] processes = (Customer[]) oq.Select(customers, query);
-------
I have no idea about when and how can be it useful, but it can be intersting
to do the trick for Ruby, ha?
Victor.
Today I've stubled upon an interesting article at CodeProject:
Karmencita: an object query language for .NET
http://www.codeproject.com/csharp/Karmencita.asp
The do something like
-----
// initialize the data source
// (in this case a Stack of Customers)
Stack<Customer> customers = .....
// initialize Karmencita with
// the type of object to be queries
ObjectQuery<Customer> oq =
new ObjectQuery<Customer>();
// write the query
string query = "Name = [Thor the Mighty]" +
" and IsMale = true and BirthDate" +
" < [1,1,1910]";
//run the query
Customer[] processes = (Customer[]) oq.Select(customers, query);
-------
I have no idea about when and how can be it useful, but it can be intersting
to do the trick for Ruby, ha?
Victor.