Make internal classes visible to other assemblies

I’ve just uploaded a new beta that allows this to work. Add the following attribute to the libraries whose internals you want LINQPad to access: [assembly: InternalsVisibleTo(“LINQPadQuery”)] You’ll also need to enable this feature in LINQPad’s preferences (Edit | Preferences | Advanced). Let me know how you get along.

How to do internal interfaces visible for Moq?

The suggested fix message uses a const/static field for the assembly name: [assembly: InternalsVisibleTo(InternalsVisible.ToDynamicProxyGenAssembly2)] You used a string which does not correspond to the assembly name: [assembly: InternalsVisibleTo(“InternalsVisible.DynamicProxyGenAssembly2”)] Change it to: [assembly: InternalsVisibleTo(“DynamicProxyGenAssembly2”)] You can see the actual assembly name (which should appear in InternalsVisibleTo) in your error message: Type ‘Castle.Proxies.IReminiscenceableDataTableProxy’ from assembly ‘DynamicProxyGenAssembly2 (…)

Are Git’s pack files deltas rather than snapshots?

Summary: Git’s pack files are carefully constructed to effectively use disk caches and provide “nice” access patterns for common commands and for reading recently referenced objects. Git’s pack file format is quite flexible (see Documentation/technical/pack-format.txt, or The Packfile in The Git Community Book). The pack files store objects in two main ways: “undeltified” (take the … Read more

What is [DllImport(“QCall”)]?

I asked some people in the .Net team about this. QCalls are calls to native methods within the CLR runtime. They behave like other [DllImport]s, but they’re faster because they make specific (undocumented) assumptions about what the native methods do, so they can skip various marshalling and GC and exception checks. InternalCall is different; it’s … Read more

Python string interning

This is implementation-specific, but your interpreter is probably interning compile-time constants but not the results of run-time expressions. In what follows CPython 3.9.0+ is used. In the second example, the expression “strin”+”g” is evaluated at compile time, and is replaced with “string”. This makes the first two examples behave the same. If we examine the … Read more

How does a debugger work?

The details of how a debugger works will depend on what you are debugging, and what the OS is. For native debugging on Windows you can find some details on MSDN: Win32 Debugging API. The user tells the debugger which process to attach to, either by name or by process ID. If it is a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)