question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In original code there is lack of license to original code (published in 2006 with CPOL license) You can see that that was a base code in state’s names and state’s values like addilne, classnames

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
RobertGieseckecommented, Nov 14, 2018

Hi, this was a long time ago… I did remember seeing his article when I already had a working prototype (but his article might predate my work, not sure). I started with it, because too many times, folks would write that this kind of thing would be impossible.

I remember that some things were eerily similar. I also used a state machine and my enum was almost the same. Even that eye sore “} // end of class” was in your code as well. I think, I saw someone else at that time searching for that string as well. (You were probably just as afraid to read over a class boundary than I was) The attribute had to be the same. We can only change the export name and the convention, everything else is just the result of mirroring DllImportAttribute.

However, if I remember correctly, I already used Cecil in my first prototypes to get the attributes and their values reliably. I must have liked some of the things I saw in your code, so that over time things in mine started to follow some of your ideas.

I am absolutely unsure (and curse myself for not using a VCS back then), whether I followed your approach to get rid of the attribute dependency or not. I think, I just didn’t care when it was still a project template. But when it became a nuget packages, I had to provide an assembly with that attribute, and I didn’t want to create a runtime dependency. But even if I already did that or did it later on, I probably recognized and skipped those lines according to my copy of Expert .NET 2.0 IL Assembler

The obvious pieces like naming a variable „trimmedLine“ are no indication for a copy, I used that name so many a hundred times for a trimmed line, as did probably everybody else. I don’t recall copying anything from your code, but looking at it now, I have to say I that some things got closer to yours over time.

And btw, this repo here is not my code. He used ilspy or reflector to get C# code from my binaries. And wasn’t the bulk of the work getting the correct locations and versions of il(d)asm and dealing with Microsoft’s constant campaign of breaking how to find those things. Which is why I stopped caring about it a long time ago.

2reactions
denfromufacommented, Nov 13, 2018

Any idea @RobertGiesecke?

Read more comments on GitHub >

github_iconTop Results From Across the Web

License - Wikipedia
A license (US) or licence (Commonwealth) is an official permission or permit to do, use, or own something A 2010 sample of a...
Read more >
Driver's Licenses
A California driver's license (DL) is a card which gives you permission to operate a motor vehicle. A DL includes your true full...
Read more >
Driver License - Texas Department of Public Safety
The Texas Department of Public Safety issues driver licenses that are valid for up to eight years to Texas residents. Driver license offices...
Read more >
LicensE - Wisconsin.gov
This portal can be utilized to apply for a new license and some license renewals. Please visit the LicensE Customer Information page for...
Read more >
Apply for licenses and permits
Most small businesses need a combination of licenses and permits from both federal and state agencies. The requirements — and fees — vary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found