DotNetShoutout - Stories tagged with dynamic
7
Shouts

Web.NET: Using Anonymous Types Outside of Local Context with Dynamic Keyword

published 588 days, 10 hours, 50 minutes ago posted by http://blog.turlov.com/http://blog.turlov.com/ 592 days, 3 hours, 32 minutes ago
Wednesday, November 09, 2011 2:50:27 PM GMT Saturday, November 05, 2011 10:08:15 PM GMT
Anonymous types that have been introduced in C# with .NET 3.5 is a convenient and powerful feature and can be used to simplify and speed up development without sacrificing code quality or violating coding standards. Perhaps one most widely known application is to use anonymous types in a context of LINQ expressions since that is mentioned on MSDN in most of the anonymous types related examples. Such strong association between anonymous types and LINQ though being true creates a wrong impression of that L... (more)
category: Web Dev | clicked: 22 | 1 comment | | source: blog.turlov.com
tags: dynamic, C#, anonymous types
2
Shouts

c# and .N .NET interview questions: - How to implement dynamic polymorphism?

posted by questpondquestpond 642 days, 12 hours, 6 minutes ago
Friday, September 16, 2011 1:34:50 PM GMT
This is the .NET interview questions which you come across many a times. So following is the answer to it with explanation. (more)
category: Web Dev | clicked: 4 | comment | | source: computerauthor.blogspot.com
tags: .NET, .net Interview Question, dynamic, Polymorphism
2
Shouts

Groovy Like ConfigSlurper in C# using ExpandoObject « Sankarsan’s Journal

published 667 days, 21 hours, 16 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 668 days, 7 hours, 23 minutes ago
Monday, August 22, 2011 4:24:46 AM GMT Sunday, August 21, 2011 6:16:55 PM GMT
In GroovyConfigSlurper is a utility class that is used for reading configuration files written in form of Groovy scripts.Let’s consider the following properties file. We will use a Groovy script to read from this properties file as shown in the snippet below: package com.test import java.util.Properties class Start { static main(args) { def p = new Properties() new File("test.properties").withInputStream { stream -> p.load(stream) } println "gfv3.admin.... (more)
category: How To | clicked: 14 | comment | | source: sankarsan.wordpress.com
tags: dynamic, C# 4.0, Expando, Groovy
4
Shouts

Dynamic repositories with LightSpeed - taking dynamic to the next level

published 781 days, 10 hours, 28 minutes ago posted by traskjdtraskjd 784 days, 2 hours, 41 minutes ago
Saturday, April 30, 2011 3:12:02 PM GMT Wednesday, April 27, 2011 10:59:34 PM GMT
Ready to think outside the box with the C# dynamic keyword? This post looks at taking the c# dynamic keyword and seeing how much boiler plate code we can get rid of. You'll learn how to take the Repository pattern where developers write a lot of GetFooByName, GetBarByEmailAddress type methods and how to get rid of them - gone, history, finished! Then there's Named Parameters - this post starts looking at how to use them for querying. By the end of this post you'll have a whole new way of looking at thing... (more)
category: Architecture | clicked: 4 | comment | | source: www.mindscapehq.com
tags: Repository, dynamic, LightSpeed
4
Shouts

Microsoft Programmers | Sort Generic List Using Lambda Expression For Dynamic Type And Dynamic Property

published 816 days, 4 hours, 44 minutes ago posted by jebarson007jebarson007 817 days, 19 hours, 19 minutes ago
Saturday, March 26, 2011 8:56:13 PM GMT Friday, March 25, 2011 6:21:49 AM GMT
I once stuck on a requirement where I needed to write a code which is flexible and generic enough to sort any type of collection and also the property based on which it has to be sorted will be dynamic. After trying many options I discovered myself how easy it is to hit this requirement using Lamda Expression. Below code will do this for you. (more)
category: Web Dev | clicked: 3 | comment | | source: www.jebarson.info
tags: lambda, Order By, dynamic, Sort, generic, order, dynamic sort, Generic List, Expression
5
Shouts

Nizar's .NET Blog » The case for C#’s dynamic keyword

published 845 days, 17 hours, 50 minutes ago posted by noorani786noorani786 847 days, 21 hours, 35 minutes ago
Friday, February 25, 2011 7:50:47 AM GMT Wednesday, February 23, 2011 4:05:02 AM GMT
Many developers feel, myself included, that C#’s ‘dynamic’ keyword is…well, a little too dynamic. But, recently, I faced a challenging problem which I was only able to solve through the use of the ‘dynamic’ keyword! (more)
category: How To | clicked: 3 | comment | | source: nizarnoorani.com
tags: .NET, dynamic, C#, ClientBase, WCF
4
Shouts

C# Dynamic Binding – Language Binding

published 869 days, 8 hours, 13 minutes ago posted by JudoJudo 871 days, 18 hours, 44 minutes ago
Tuesday, February 01, 2011 5:27:42 PM GMT Sunday, January 30, 2011 6:56:01 AM GMT
Language binding is a form of dynamic binding which occurs when a dynamic object does not implement IDynamicMetaObjectProvider. Language binding comes in handy when working around imperfectly designed types or the inherent limitations in the .NET type system. A common problem is that when using numeric types is they have no common interface. Using dynamic binding, methods can be bound dynamically and the same also applies for operators: static dynamic Mean (dynamic xObj, dynamic yObj) { return (xObj + yO... (more)
category: UX | clicked: 2 | comment | | source: www.csharphelp.com
tags: Dynamic Binding, dynamic, C#
4
Shouts

C# Dynamic Binding

published 875 days, 6 hours, 18 minutes ago posted by JudoJudo 877 days, 18 hours, 12 minutes ago
Wednesday, January 26, 2011 7:22:06 PM GMT Monday, January 24, 2011 7:28:07 AM GMT
Dynamic binding in C# defers binding (ie the process of resolving types, operators and members) from compile time to runtime. Dynamic binding is used when you know w that a certain function, member, or operation exists at compile time but the compiler does not. This normally occurs when interoperating with dynamic languages (like IronPython) or COM and in scenarios when you would otherwise use reflection. A dynamic type is declared using the keyword dynamic: dynamic dObj = GetSomeObject(); dObj.Bark(... (more)
category: UX | clicked: 2 | comment | | source: www.csharphelp.com
tags: Dynamic Binding, dynamic, C#
10
Shouts

Interoperating C# with Dynamic Languages

published 880 days, 14 hours, 12 minutes ago posted by JudoJudo 882 days, 9 hours, 41 minutes ago
Friday, January 21, 2011 11:28:05 AM GMT Wednesday, January 19, 2011 3:58:54 PM GMT
Despite the fact that C# 4.0 supports dynamic binding using the dynamic keyword, it doesn’t go as far as to allow executing an expression described in a string at runtime such as:string expr = "2 * 4"; // We can't "execute" expr This is due to the fact that the code to translate a string to an expression tree requires a lexical and semantic parser. These are built into the C# compiler and so are not available as a runtime service. At runtime, C# only provides a binder – which instructs the DLR how to in... (more)
category: How To | clicked: 0 | comment | | source: www.csharphelp.com
tags: dynamic, Interop, C#
4
Shouts

Data access using C# 4 dynamic features • Onderweg Blog

published 941 days, 6 hours, 18 minutes ago posted by werchterwerchter 942 days, 15 hours, 16 minutes ago
Sunday, November 21, 2010 7:22:41 PM GMT Saturday, November 20, 2010 10:24:12 AM GMT
About using the C# dynamic type, DynamicObject inheritance and ExpandoObject in ORMs. (more)
category: How To | clicked: 0 | comment | | source: blog.onderweg.eu
tags: dynamic, C#, ORMs
5
Shouts

DLR & Microsoft Dynamics CRM « Oleg Smirnov

published 954 days, 10 hours, 36 minutes ago posted by slo2olsslo2ols 954 days, 18 hours, 43 minutes ago
Monday, November 08, 2010 3:04:18 PM GMT Monday, November 08, 2010 6:57:28 AM GMT
I always thought what impact the Microsoft Dynamics has had on the dynamic data types in .Net 4.0 framework. Because, for example, CRM has a very similar concept founded on adding properties to an entity. So I ain't saying that dynamic keyword was chosen for the dynamic data types. Anyway, one after another. This post is about applying a dynamic data type for Dynamics CRM development. (more)
category: How To | clicked: 0 | comment | | source: osmirnov.net
tags: dynamic, Dynamics, DLR, C#
6
Shouts

DLR & Microsoft SharePoint « Oleg Smirnov

published 959 days, 9 hours, 28 minutes ago posted by slo2olsslo2ols 960 days, 9 hours, 36 minutes ago
Wednesday, November 03, 2010 4:12:33 PM GMT Tuesday, November 02, 2010 4:04:12 PM GMT
DLR & Microsoft SharePoint Many developers can't find a scenario to use such feature of .Net framework 4.0 as Dynamic Language Runtime (DLR). I guess of main reason for it is static thinking. Yes, hardly to start thinking in dynamic context if you work with static-compile programming language like C#. But if you can study to do it you'll greatly simplify your code. In this post I'm going to show how we can apply a dynamic data type for SharePoint development. (more)
category: How To | clicked: 0 | comment | | source: osmirnov.net
tags: dynamic, DLR, C#, SharePoint 2010
2
Shouts

DLR using Reflection.Emit (In Depth) Part 2

posted by abhi2434abhi2434 969 days, 9 hours, 22 minutes ago
Sunday, October 24, 2010 4:18:05 PM GMT
In my previous post, I was discussing how you could create your own assembly at runtime or rather how you could compile an assembly type dynamically using Reflection.Emit.  In this post I will take it further by giving away a number of examples for your better understanding how to build your own custom types dynamically during runtime. I will also try to cover up a portion of MSIL concepts so that you could unleash the power of MSIL easily in your application. The Basics To build a dynamic type, ... (more)
category: Architecture | clicked: 0 | comment | | source: www.abhisheksur.com
tags: dynamic, C#, MSIL
2
Shouts

Advanced Dotnet Tutorial: Static and Dynamic web pages

posted by learndotnet123learndotnet123 1000 days, 20 hours, 9 minutes ago
Thursday, September 23, 2010 5:31:30 AM GMT
We can broadly classify web sites and web pages into two categories: Static web pages Dynamic web pages Static Web PagesA static web page is a page which has the same content always. In case of static web pages, content is written in the page itself as plain html. Until the author of the web page updates the content, the content remains the same in the static pages. Static web pages are meant for providing information which does not change often. For example, visit http://www.googl... (more)
category: Web Dev | clicked: 0 | comment | | source: advanceddotnettutorial.blogspot.com
tags: dynamic, C#, static, ASP .NET
2
Shouts

Viewing __ComObject with a Dynamic View

posted by brunomarquesbrunomarques 1016 days, 11 hours, 43 minutes ago
Tuesday, September 07, 2010 1:57:39 PM GMT
New VS2010 feature that allows the inspection of __ComObject's and view it's properties and values. (more)
category: Architecture | clicked: 0 | comment | | source: geeklyeverafter.blogspot.com
tags: COM, dynamic, Visual Studio 2010, .NET4
4
Shouts

Fun with DynamicObject, dynamic, and the settings table

published 1030 days, 12 hours, 37 minutes ago posted by http://morder.myopenid.com/http://morder.myopenid.com/ 1031 days, 9 hours, 13 minutes ago
Tuesday, August 24, 2010 1:03:07 PM GMT Monday, August 23, 2010 4:26:59 PM GMT
Creating a datatable mapping that utilizes the new DynamicObject. This is a modification of our existing Settings table to make it easier to read. (more)
category: Architecture | clicked: 0 | comment | | source: buildstarted.com
tags: dynamic, C#
7
Shouts

Turning JSON into a ExpandoObject - Nick Berardi's Coder Journal

published 1064 days, 10 hours, 16 minutes ago posted by http://managedfusion.com/http://managedfusion.com/ 1066 days, 6 hours, 29 minutes ago
Wednesday, July 21, 2010 3:24:21 PM GMT Monday, July 19, 2010 7:11:02 PM GMT
Recently I had the need for a web service of mine to take a JSON blob as an input. This isn’t really exciting or all that interesting a problem, but I really didn’t enjoy the code smell that came from drilling in to the resulting Dictionary object that comes from desterilizing the JSON object into something that .NET understands. (more)
category: Web Dev | clicked: 3 | comment | | source: coderjournal.com
tags: dynamic, DLR, Programming, .Net 4.0
9
Shouts

Dynamic Views in ASP.NET MVC 2

published 1079 days, 11 hours, 1 minute ago posted by gshacklesgshackles 1081 days, 4 hours, 55 minutes ago
Tuesday, July 06, 2010 2:39:43 PM GMT Sunday, July 04, 2010 8:45:06 PM GMT
One of the new features introduced in C# 4.0 is the dynamic keyword. So far I haven’t had much use for it, but lately I’ve discovered that it can be very useful when designing ASP.NET MVC views. It also has uses when interacting with COM APIs and other dynamic languages, but I’m going to focus on its use in MVC. (more)
category: Web Dev | clicked: 0 | comment | | source: www.gregshackles.com
tags: .net 4, dynamic, MVC 2
7
Shouts

Introducing Python for .NET - IronPython

published 1085 days, 13 hours, 3 minutes ago posted by mteddy29mteddy29 1086 days, 16 hours, 57 minutes ago
Wednesday, June 30, 2010 12:37:34 PM GMT Tuesday, June 29, 2010 8:43:40 AM GMT
Python is one of the increasingly trendy dynamic languages and it is now available under the .NET umbrella. IronPython is an open source version of the language developed by Guido van Rossum in 1990. Python has a great many users and they are all passionate about the language and mostly about Monty Python as well. Yes, there are lots of Pythonesque (as in the well-known TV series) references in the Python world, but it is a very serious language as well! It currently runs on most platforms, and IronPytho... (more)
category: Architecture | clicked: 1 | comment | | source: www.developerfusion.com
tags: dynamic, Python, dynamic languages, IronPython
5
Shouts

C# 4.0 in a Nutshell, Fourth Edition

published 1099 days, 14 hours, 57 minutes ago posted by http://outcoldman.ru/openidhttp://outcoldman.ru/openid 1100 days, 10 hours, 3 minutes ago
Wednesday, June 16, 2010 10:42:58 AM GMT Tuesday, June 15, 2010 3:37:24 PM GMT
Just became a lucky owner of this book C# IN A NUTSHELL 4th edition. This is a fourth edition of this book’s series. I should say that I didn’t read this book by end, but already I was surprised. Why? Why I heard a lot about Richter CLR via C#, and just a few words about C# IN A NUTSHELL, at least in my sphere. My opinion is - you should read Richter if you want to develop with .NET. But if you want to develop on .NET with C# you should read C# IN A NUTSHELL too. (more)
category: How To | clicked: 0 | comment | | source: outcoldman.ru
tags: .NET, dynamic, O’REILLY, C# 4, C#, Book Review, .Net 4.0, C# IN A NUTSHELL
Previous 1 2 Next