tagged [dynamic]

Information about IronJS

Information about IronJS Can any one point out as where can I get some tutorials about IronJS and how to call a method written in IronJS from C# 4.0 Thanks C#4.0, IronJS

Drop all tables whose names begin with a certain string

Drop all tables whose names begin with a certain string How can I drop all tables whose names begin with a given string? I think this can be done with some dynamic SQL and the `INFORMATION_SCHEMA` tab...

15 Aug at 16:12

Difference between static memory allocation and dynamic memory allocation

Difference between static memory allocation and dynamic memory allocation I would like to know what is the difference between static memory allocation and dynamic memory allocation? Could you explain ...

dynamic vs object type

dynamic vs object type I have used the dynamic and the object type interchangeably. Is there any difference between these two types? Is there any performance implications of using one over the other? ...

1 Oct at 12:46

How to determine the longest increasing subsequence using dynamic programming?

How to determine the longest increasing subsequence using dynamic programming? I have a set of integers. I want to find the [longest increasing subsequence](https://en.wikipedia.org/wiki/Longest_incre...

how to create an animated gif in .net

how to create an animated gif in .net Does anyone know how to create an animated gif using c#? Ideally I would have some control over the color reduction used. Is using imagemagick (as an external sta...

26 Dec at 11:58

How do I create 5 buttons and assign individual click events dynamically?

How do I create 5 buttons and assign individual click events dynamically? I need to create 5 buttons dynamically on windows form and each button should respond to click event. I tried it but all butto...

27 Mar at 06:29

Is there an equivalent to Groovy in C#?

Is there an equivalent to Groovy in C#? What is the closest thing to groovy/java combo in the C# .net world? If I am writing an app with static and dynamic parts, what's the dynamic part like groovy o...

15 Apr at 21:18

What is the 'dynamic' type in C# 4.0 used for?

What is the 'dynamic' type in C# 4.0 used for? C# 4.0 introduced a new type called 'dynamic'. It all sounds good, but what would a programmer use it for? Is there a situation where it can save the day...

28 Nov at 09:0

How to generate an RDLC file using C# during runtime

How to generate an RDLC file using C# during runtime I'm doing some application development (CRM solution) which require generating diagrammatically an [RDLC](https://stackoverflow.com/questions/10791...

23 May at 10:30

Deserialize XML To Object using Dynamic

Deserialize XML To Object using Dynamic Is it possible Deserialize unknown XML to object like below?

Monkey Patching in C#

Monkey Patching in C# Is it possible to extend or modify the code of a C# class at runtime? My question specifically revolves around Monkey Patching / Duck Punching or Meta Object Programming (MOP), a...

4 May at 19:48

C# Using the Dynamic keyword to access properties via strings without reflection

C# Using the Dynamic keyword to access properties via strings without reflection I would like to write something similar to the following: ``` // I will pass in a number of "properties" specified as s...

14 Oct at 15:50

How to save a dynamically generated assembly that is stored in-memory?

How to save a dynamically generated assembly that is stored in-memory? I want to get my hands on an assembly by saving it to disc or reflect it at runtime. The assembly is generated dynamically in mem...

24 Dec at 15:36

Expression Tree Copy or Convert

Expression Tree Copy or Convert How to convert a ExpressionTree of form to where POCO1 and POCO2 are C# objects and both have Int32 Age property

How to detect if a property exists on an ExpandoObject?

How to detect if a property exists on an ExpandoObject? In javascript you can detect if a property is defined by using the undefined keyword: How would you do this in C# using the dynamic keyword wit...

19 Jul at 19:22

How to load a class from a .cs file

How to load a class from a .cs file Is it possible to load a class and create Instance of it from It's `.cs` file? I want to open a custom class in a `.cs` file and create instance of it in my applica...

5 Nov at 05:42

How to check if dynamic is empty.

How to check if dynamic is empty. I am using Newtonsoft's Json.NET to deserialize a JSON string: How can I check that `output` is empty? An example test case:

29 Jul at 01:41

Dynamically adding properties to an ExpandoObject

Dynamically adding properties to an ExpandoObject I would like to dynamically add properties to a ExpandoObject at runtime. So for example to add a string property call NewProp I would like to write s...

4 Dec at 23:50

Dynamic in the immediate window causes 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported error

Dynamic in the immediate window causes 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported error If I use `dynamic` in the immediate window of Visual Studio I get an error > Predefined ...

C#: How to perform a null-check on a dynamic object

C#: How to perform a null-check on a dynamic object How do I perform a on a dynamic object? Pseudo code:

11 Aug at 16:42

What is the __DynamicallyInvokable attribute for?

What is the __DynamicallyInvokable attribute for? Looking through `System.Linq.Enumerable` in DotPeek I notice that some methods are flavoured with a `[__DynamicallyInvokable]` attribute. What role do...

23 Sep at 08:12

Add controls dynamically in flowlayoutpanel

Add controls dynamically in flowlayoutpanel In a windows form, I can add control dynamically by doing this: ``` for (int i = 0; i

C# - Disable Dynamic Keyword

C# - Disable Dynamic Keyword Is there any way to disable the use of the "dynamic" keyword in .net 4? I thought the Code Analysis feature of VS2010 might have a rule to fail the build if the dynamic k...

get the Type for a object declared dynamic

get the Type for a object declared dynamic I would like to get the Type for an dynamic object, something like: Except that in the above, GetType() returns the type of the wrapper for dynamic objects n...

9 Sep at 13:41