For example:
m_lottTorqueTools = (From t In m_lottTorqueTools _
Where Not t.SlotNumber = toolTuple.SlotNumber _
And Not t.StationIndex = toolTuple.StationIndex).ToList
What algorithm occurs here? Is there a nested for loop going on in the background? Does it construct a hash table for these fi...
I have a .Net app with dll's that some of them were compiled with .Net 1.1 and some with 2.0. How does such an application work - isn't there only one runtime for an application? If so which is it? If not how are objects being passed between the runtimes?
...
Currently we have MS SQL Server 2005 (32 bit). We have 1 assembly (and only 1 assembly) which we use for encryption and decryption. Only 512 MB of system memory is allocated to CLR. The assembly runs pretty slow, and I'm trying to rule out if its from memory or not. When I run the SQL code in query analyzer (not in an assembly) it runs q...
There are quite a few questions & answers about hacking around the limitation of C# not allowing method return (and argument) types to be changed to compatible types on overrides, but why does this limitation exist, either in the C# compiler or in the CLR? As I an see, there is nothing that could break if co/contra-variance was allowed, ...
I'm working on becoming as familiar with C# as I am with VB.NET (the language used at my workplace). One of the best things about the learning process is that by learning about the other language you tend to learn more about your primary language--little questions like this pop up:
According to the sources I've found, and past experien...
Does anyone know of a comprehensive list of languages that target the .NET Common Language Runtime?
I'm interested specifically in Windows implementations but if there is a list that includes CLI languages on other platforms (Mono, etc) then that's helpful, too. I just can't seem to uncover this information in Google.
...
Hi there,
I am working on a Linq based CLR Stored Procedure for some complex filtering and manipulation, which would otherwise require a lot of messy and poorly performant T-SQL code, if implemented in a more "traditional" Stored Procedure.
This is working great, but I can't find how to set the schema of this Stored Procedure in phase ...
A related question to a previous one regarding the same subject.
In a CLR stored procedure, I am bulding a collection of objects which represent a data set after a complex filtering.
This collection is then "translated" in a resulset with the SqlContext.Pipe.SendResultsStart / SendResultsRow / SendResultsEnd loop and delivered.
Despite ...
When you write an iterator function in C#, using yield syntax, the compiler internally translates your function into a class. So, if I write something like this:
IEnumerator<int> MyIterator () {
for (int i = 0; i < 10; i++)
yield return i;
}
Invoking MyIterator() constructs a class with a private field for i, instead of using a ...
I know how to extern methods in the .dll, how do I extern structs?
I want to create a C method such as
extern __declspec(dllexport) myStructure getStruct();
where myStructure is something like
typedef struct
{
int A;
int B;
char C;
} myStructure;
How can I call getStruct() from a piece of C# code without first defining th...
Is it possible to use to use libs compiled with /MT in C++ CLR? It throws me either a ton of LNK2022 "metadata operation failed (8013118D)" errors (if I use /MD in the CLR project) or " '/MT' and '/clr:pure' command-line options are incompatible" if I use /MT.
What do I need to change in the library? The library is mine, but it includes...
I need to encrypt / decrypt passwords for a new application. The spec requires me to use AES; can anyone suggest a good reason to either
Do all my encryption in the database layer using CLR functions or
Doing it at the .Net app layer ?
a mixture of db and server
Am going to be validation passwords; the app is n-tiered using Telerik O...
I need some help to describe, in technical words, why a 64-bit application prompts a "Not a valid Win32 application" in Windows 32-bit on a 32-bit machine? Any MSDN reference is greatly appreciate it (I couldn't google a reliable source). I know it shouldn't run, but I have no good explanation for this.
...
I am getting compiler error D8045. cannot compile C file 'serialcommands.c' with the /clr option.
This file is a C library that has been written to talk over a serial port to a TI processor. The task that I need to do is wrap this library with a CLR wrapper (there will be additional questions posted to stackoverflow concerning marshall...
I am writing a wrapper for a library written in C.
The header file for this library is located in
C:\Projects\SerialLibrary
The wrapper is located in
C:\Projects\SerialLibrary\Client\ClrSerialLibrary
no matter what I do, VS2008, cannot seem to find
#include "serialheader.h"
I always am getting the no such file or directory erro...
While my ASP.NET project uses version 3.5 of the framework, the event log registers errors as coming from version 2.X of the framework such as this:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 2009-05-19
Time: 17:04:29
User: ...
I saw another post that suggested the following:
String^ clistr = gcnew String("sample");
IntPtr p = Marshal::StringToHGlobalAnsi(clistr);
char *pNewCharStr = static_cast<char*>(p.ToPointer());
Marshal::FreeHGlobal(p);
I just wanted to check and see if there is any other, preferred way, or if anything was wrong with the above?
...
Hello,
I am trying to make my first CLR Assembly\stored procedure. I have compiled the code using CSC, and added the assembly to SQL server. The assembly shows up, but the class seems to be missing.
C# CODE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
usin...
I want to define some properties on a class using the [Indexable()] attribute in order to use the class with the i4o library (http://www.codeplex.com/i4o) but when I try and compile the code Visual Studio says it cannot find the Namespace for Indexable.
Is this part of the CLR and which namespace/library do I need to get this to compile...
Hello everybody,I have some question which puzzled me for a long time.
What is the relationship between CLR
and one process created by OS?
What steps the CLR is loaded when we double-click an "Console Application" or "Windows Forms Application"?
I found two methods: _CorExeMain() and _CorBindToRuntimeEx(). What's the role of them?
...