Questions tagged [impromptu-interface]

ImpromptuInterface is a framework for .net that uses the DLR's api, normally hidden by the compiler, for meta programming purposes such as adding interfaces at runtime.

ImpromptuInterface is a framework for .net that uses the DLR's api, normally hidden by the compiler, for meta programming purposes such as adding interfaces at runtime, Late Binding via API, Inline Fluent Syntaxes, Currying, and Pre-canned DynamicObjects.

Apache Licensed and available at http://code.google.com/p/impromptu-interface/

Examples:

Adding an interface at runtime:

//Dynamic Expando object
dynamic expando = Build<ExpandoObject>.NewObject(
             Prop1: "Test",
             Prop2: 42L,
             Prop3: Guid.NewGuid(),
             Meth1: Return<bool>.Arguments<int>(it => it > 5)
);

IMyInterface myInterface = Impromptu.ActLike(expando);

Late binding a method at via API:

var relUri = Impromptu.InvokeMember(baseUri, "MakeRelativeUri", absUri);

.NET Framework support

ImpromptuInterface runs on .NET 4.0 or later, Mono 2.10 or later,and Silverlight 4 or Later.

Nuget package

There is a binary distribution of ImpromptuInterface on nuget at http://nuget.org/packages/ImpromptuInterface.

Extensions

ImpromptuInterface also includes the following extensions:

19 questions
0
votes
1 answer

Updating ImpromptuInterface from 6.2.2 to 7.0.1 (latest version)

My project currently references ImpromptuInterface 6.2.2 and it works great. I am in the process of updating all my nuget packages to latest version. When updating ImpromptuInterface from 6.2.2 to 7.0.1 I got 2 errors: 'Impromptu' does not contain…
Bronzato
  • 9,438
  • 29
  • 120
  • 212
0
votes
1 answer

Issue with Impromptu in C#

I am using Impromptu in C# and I have the following situation. This is my class that I am populating: public class FinalDecisionInformation { public int PersonNo { get; set; } public int OrdNo { get; set; } public int OrdLineNo { get; set; } …
0
votes
1 answer

Make new object with reflection?

I'm not sure if this is possible and after lengthy research I haven't found something conclusive. I am trying to dynamically create a new object (itself a new Type) from a dictionary. So say I have key and value that key and value will become a…
Jose Luis
  • 3,307
  • 3
  • 36
  • 53
0
votes
1 answer

How to add and remove button dynamically from particular state in impromptu?

I am using impromptu for prompt and I want to add buttons dynamically on specific condition. state0: { html: 'Do you want to apply changes?', buttons: { YES: 1, NO: 0 }, focus: 1, submit: function(e, v, m, f) { if (v == 1) { …
anagha affinity
  • 273
  • 1
  • 3
  • 14
1
2