DotNetShoutout - Stories tagged with Expando
2
Shouts

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

published 643 days, 3 hours, 44 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 643 days, 13 hours, 52 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
9
Shouts

Property Copying With Dynamic Objects in .NET 4.0 - Windows Live

posted by joel_holderjoel_holder 1251 days, 2 hours, 21 minutes ago
Tuesday, December 22, 2009 5:48:00 AM GMT
I wanted a C# expando object that I could program against with some of the techniques we use in javascript to programmatically build up a graph's shape with runtime logic.   The built in System.Dynamic.ExpandoObject was not sufficient for this purpose, in that it does not provide a mechanism for setting property names at runtime.   In this post I'll quickly sh... (more)
category: Agile | clicked: 3 | 2 comments | | source: uberpwn.spaces.live.com
tags: dynamic, C#, VS 2010, Expando, .Net4.0