Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
133 views

So, for small numbers my code does work, but it doesn't work for big numbers, for instance 100^10. So someone could help me finding my mistakes, or point out some clues for me to fix my code. #include ...
123krikit krukut's user avatar
1 vote
0 answers
33 views

I am trying to make my dynamic class behave as System.Int32 in arithmetic expressions. However, I seem to be unable to handle situation when a dynamic instance is being added to an integer: dynamic i =...
LOST's user avatar
  • 3,372
1 vote
1 answer
108 views

#include <stdio.h> #include <string.h> char username[64], password[64], hostname[64]; int main(int argc, char **argv) { char result[256]; if (argc != 4 || ...
user avatar
-4 votes
1 answer
197 views

151A codeforces link Here is my code written in C language. It has some problem #include<stdio.h> #include<conio.h> int main () { int n,k,l,c,d,p,nl,np,mm,per,tl,to,sum; ...
Rafikul Bin Masud's user avatar
2 votes
1 answer
418 views

I want to get a python app to pass a generic list to my C# code. I've created a demo app that duplicates the problem I'm seeing. I have this python code (Python 2.7), MainApp.py, that calls a C# DLL (....
Joe Mayo's user avatar
  • 7,503
4 votes
1 answer
1k views

I have an Expression<Func<IQueryable<TIn>,TOut>>, and I'd like to transform it into Expression<Func<IEnumerable<TIn>,TOut>>. Actually, my end goal is to compile the ...
relatively_random's user avatar
2 votes
1 answer
139 views

IronRuby and IronPython have custom built-ins, standard modules and you can write code straight out of hand(Directly using statements and declarations in the code), instead of using namespaces and ...
Mr.DeleteMyMessages's user avatar
1 vote
0 answers
98 views

I am working on arbitrary object tree conversion to some specific format, using dynamic dispatch (to simplify handling generics). The object tree is generated by interop code, wraps some values into ...
LOST's user avatar
  • 3,372
0 votes
1 answer
75 views

Below code work perfectly fine unless I change GetCount parameter type from ICollection to dynamic - it throws RuntimrBinderException Why at runtime Count property is not available ? static void Main(...
rahulaga-msft's user avatar
0 votes
1 answer
1k views

I know question looks to be broad and subjective, but am stuck with this definition of IronPython everywhere - "IronPython is an implementation of the Python programming language" Please feel free to ...
rahulaga-msft's user avatar
2 votes
0 answers
243 views

Unity 2017 introduced an experimental .NET 4.6 Mono backend. Given that Mono seems to support the dynamic language runtime, I'm wondering whether we can finally use dynamic in Unity games (even if it'...
Patrick Klug's user avatar
  • 14.4k
1 vote
1 answer
1k views

I have the following class for binding to dynamically generated columns on a WPF DataGrid. The column binding has to be a property name, and I can add appropriately named properties to a DynamicObject:...
ProfK's user avatar
  • 51.4k
1 vote
1 answer
175 views

DLR or Dynamic Language Runtime hasn't seen any activity after mid 2010, still around its v1.0 release since then. I need DLR and IronPython to run my Python code using Numpy and at the same time ...
vijiboy's user avatar
  • 624
0 votes
0 answers
287 views

When I click the button On winform, this get executed: using (var outStream = new ScriptOutputStream(win.txtOutput)) { ExecuteScript(outStream); } This is the function to run the script. ...
Hrishikesh Mulabagula's user avatar
2 votes
0 answers
552 views

I'm parameterizing some linq queries, and ended up using dynamic linq. Initially I had some trouble extracting the data from the dynamic objects it created but I managed to extract it using FSharp. ...
s952163's user avatar
  • 6,322
10 votes
2 answers
1k views

I found very nice answer on a question about building Expression Tree for Where query. Expression.Lambda and query generation at runtime, simplest "Where" example Can someone help me and ...
Piotr Czarnecki's user avatar
14 votes
2 answers
3k views

We are currently hunting some memory leaks in our application, when doing some operation(loading and closing one project inside our application), we know that the memory increase always a little bit. ...
J4N's user avatar
  • 21.1k
2 votes
0 answers
162 views

I have the following class in a Universal Windows exe project (actual functionality not included). sealed class DataPage { public DataPage(dynamic page) { Data = page; } ...
dkackman's user avatar
  • 15.7k
3 votes
1 answer
500 views

I have a simple IronPython class which implements a destructor (__del__) and write some thing to the console in it. If there is not reference to the instance any more and i call GC.Collect for ...
BendEg's user avatar
  • 21.3k
6 votes
2 answers
143 views

I understand that variable capturing is done by the compiler and not by the classes in the .NET framework itself. However, when the DLR was introduced, some of this work must surely have needed to ...
Water Cooler v2's user avatar
5 votes
1 answer
2k views

Is it possible to use the Entity Framework 6 with the code first pattern and write the models in C# and in IronPython? The background is, that a few standard models are defined in the c# core, and ...
BendEg's user avatar
  • 21.3k
7 votes
1 answer
208 views

While investigating how C# dynamic keyword works, I stumbled upon some weird behaviour. It almost looks like a bug, but it probably more likely there is a reason for the behaviour. In the code below, ...
LaZe's user avatar
  • 722
1 vote
1 answer
516 views

Is it possible in IronPython to use a kind of inline namespace? For example: System.Console.WriteLine("Test") If i execute the code from above, get the following error: name 'System' is not defined. ...
BendEg's user avatar
  • 21.3k
0 votes
1 answer
140 views

I have a simple dynamic object that returns a double: class MyDynamic : DynamicObject { public override bool TryGetMember(GetMemberBinder binder, out object result) { result = 2.0; ...
Shahar Prish's user avatar
  • 4,837
0 votes
1 answer
81 views

I want browse (and inspect) scope variables of ironruby scope. If i execute: a = 15 b = 16 c = a * b I want to enumerate "a, b, c" and get their value on demand. I tried runtime.Globals....
TcKs's user avatar
  • 26.8k
1 vote
0 answers
61 views

The causes of the exception: Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax. Have been ...
Philip Pittle's user avatar
1 vote
1 answer
66 views

The title is pretty self explanatory on this one. To clarify: I've built a pretty complete language infrastructure using dynamic expressions and thought it would be cool to try outputting an assembly....
SilverX's user avatar
  • 1,519
2 votes
0 answers
2k views

I am using Linq in a simple IronPython script to perform a lookup against an entity framework database context: import clr import System clr.AddReference('Common') clr.AddReference('System.Core') ...
user avatar
0 votes
2 answers
499 views

As I recently found the DLR, I see it's possible to change value types in runtime easily. Is there going to be any memory problems or exceptions during runtime? How does the DLR get to change the ...
111WARLOCK111's user avatar
0 votes
1 answer
125 views

I've build my own script engine and im an at the point, that the code is parsed into a nice tree. Now i am facing the problem, that i need to "execute" the tree in my own runtime. That is no problem ...
BendEg's user avatar
  • 21.3k
5 votes
1 answer
3k views

I am using Json.Net to deserialize json results into ExpandoObjects using code like the following: var converter = new ExpandoObjectConverter(); dynamic d = JsonConvert.DeserializeObject<...
dkackman's user avatar
  • 15.7k
1 vote
0 answers
88 views

I've just integrated SassAndCoffee into a project. It works great, with the exception of debugging. A single request to a .scss resource returns in 50ms. Hit F5 and refresh, and the exact same request ...
Amir Abiri's user avatar
  • 9,517
2 votes
1 answer
357 views

According to the documentation for TryBinaryOperation this method will be called when the left hand side of a binary operation is a dynamic object. I've got a class that derives from dynamic object ...
dkackman's user avatar
  • 15.7k
0 votes
1 answer
902 views

Suppose we have the following code in IronPython: def hello(): print "Hello from Python" We call function hello() in the following C# code: private static void GetPythonFunction() { ...
user2341923's user avatar
  • 4,797
1 vote
1 answer
356 views

I have the following code that instantiates a registered COM object private dynamic server = null // Global variable. ... Type type = Type.GetTypeFromProgID("Svr.GrpCall"); this.server = Activator....
MoonKnight's user avatar
  • 23.9k
16 votes
2 answers
24k views

First of all, I'd like to appoligize in advance for my English. My question is specifically about what do I need to have in a C# application to be able to interpret a Lua script fed to said ...
user3251430's user avatar
0 votes
1 answer
318 views

Linq Expression Trees can be found in the System.Linq.Expressions namespace in the System.Core.dll assembly. In which assembly and in what namespace is the DLR Expression Tree API? Is it that the ...
Water Cooler v2's user avatar
4 votes
1 answer
618 views

I am trying to learn how to write a simple scripting language on top of DLR, by playing with a very old DLR example called ToyScript. However ToyScript does not seem to support the following structure ...
user3050324's user avatar
5 votes
2 answers
669 views

Just Asking : Why 'withOffset' variable is inferred as dynamic as Parse method returns Struct ? dynamic str = "22/11/2013 10:31:45 +00:01"; var withOffset = DateTimeOffset.Parse(str); and after ...
dipak's user avatar
  • 2,033
0 votes
1 answer
810 views

Edit 1: I have done some research and would like to simplify the question : I would like to have a model with a dynamic object. public dynamic AdditionRuntimeData; this object will be populated at ...
Pratik's user avatar
  • 888
1 vote
2 answers
247 views

I have an hybrid c# object, with some instance properties and methods, and I pass it to IronPython. What I want is to syncronize the dispatch to the c# members, both static and dynamics, from Py code. ...
spartaco's user avatar
  • 399
5 votes
2 answers
1k views

I have some questions about the interactions and relationships between DynamicMethods, Expression Trees and the DLR. I know that LambdaExpression.Compile uses an ILGenerator internally to create a ...
Jeff's user avatar
  • 36.7k
0 votes
1 answer
2k views

We intermittently get this error on our .net 4 web forms web site. Recycling the app pool seems typically resolves it. The only references i can find to it seem to be related to either using Umbraco, ...
Darkwing's user avatar
  • 7,685
20 votes
2 answers
2k views

I have a demo project, which creates an assembly and uses it. I also can debug the injected code. But if I run coverage, analysis or profiling, it is counted, but I want to measure it. Code: ...
lajos.cseppento's user avatar
4 votes
4 answers
3k views

I compile code dynamically from code: string code = @" namespace CodeInjection { public static class DynConcatenateString ...
lajos.cseppento's user avatar
3 votes
2 answers
10k views

I am new to C# 4, especially the dynamic keyword. I have seen quite a number of tutorials and wish to try it out myself using VS 2012 Ultimate (MSDN). Unfortunately I cannot seem to find System....
s k's user avatar
  • 5,342
-1 votes
1 answer
3k views

Adding this for posterity since I couldn't find anything specific in my Googling endevors. Problem: The call is ambiguous between the following methods or properties: 'System.Web.HttpUtility....
longda's user avatar
  • 10.5k
3 votes
4 answers
7k views

I'm using a method that has a return signatur of IEnumerable<dynamic>. At runtime for a particular call it is returning List<Dapper.SqlMapper.FastExpando>. var x0 = repo.Find(proc, param);...
Jay Walker's user avatar
  • 4,731
9 votes
2 answers
455 views

I have a handy utility method which takes code and spits out an in-memory assembly. (It uses CSharpCodeProvider, although I don't think that should matter.) This assembly works like any other with ...
MgSam's user avatar
  • 12.9k
9 votes
2 answers
925 views

How does the is operator work with respect to the DLR? To make my question a little more explicit, consider the following signature: public bool Is<T>(Func<dynamic> getInstance) { ...
smartcaveman's user avatar
  • 42.6k

1
2 3 4 5 6