🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

FluTe

* Define string.format-like templates using *named* tokens. * A fluent API that makes template configuration clear and intuitive. * Access properties and parameterless methods of input values using a simple syntax. * Use delegates to process inputs. Tell your template to join a list, make a string uppercase, or calculate a difference -- decleratively. * No awkward string-based syntax that needs to be learned, and no tables you need to search through to find the type of formatting you need. All processing syntax is 100% language integrated. * All objects are totally immutable. No need to worry about thread-safety. * High-performance parser written using the FParsec parser-combinator library that performs a single pass on the input. Performs exponentially better than regex-based solutions.

0.5.0.1
Version published
Maintainers
1
Created

impromptu-interface http://code.google.com/p/impromptu-interface/

C# 4.0 framework to allow you to wrap any object with a static Duck Typing Interface, emits cached dynamic binding code inside a proxy.

Copyright 2010 Ekon Benefits Apache Licensed: http://www.apache.org/licenses/LICENSE-2.0

Author: Jay Tuley jay+code@tuley.name

Usage: public interface ISimpeleClassProps { string Prop1 { get; }

    long Prop2 { get; }

    Guid Prop3 { get; }
}
var tAnon = new {Prop1 = "Test", Prop2 = 42L, Prop3 = Guid.NewGuid()};

ISimpeleClassProps tActsLike = tAnon.ActLike<ISimpeleClassProps>();

Or dynamic tNew = new ExpandoObject(); tNew.Prop1 = "Test"; tNew.Prop2 = 42L; tNew.Prop3 = Guid.NewGuid();

ISimpeleClassProps tActsLike = Impromptu.ActLike<ISimpeleClassProps>(tNew);

Also Contains some primitive base classes:

ImpromptuObject --Similar to DynamicObject but the expected static return type from the wrapped interface can be queried. ImpromptuFactory -- Functional base class, used to create fluent factories with less boilerplate ImpromptuDictionary -- Similar to ExpandoObject but returns default of the static return type if the property has never been set.

FAQs

Package last updated on 24 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts