petrohilt.blogg.se

Delphi add in .net reflector
Delphi add in .net reflector









delphi add in .net reflector
  1. #DELPHI ADD IN .NET REFLECTOR INSTALL#
  2. #DELPHI ADD IN .NET REFLECTOR CODE#
  3. #DELPHI ADD IN .NET REFLECTOR SERIES#
  4. #DELPHI ADD IN .NET REFLECTOR ZIP#

The class has a series of overloads for a static methods called SignalEvent. The second class is called ProfilerEvent. It it would be nice to record this information for reference by another member of the team, or ourselves next time we look at the API. The assembly contains two classes, after a quick investigation it becomes apparent that the Strings class doesn’t affect us. These files can be merged so that the annotations from the merged files appear in the current review.Ĭontinuing on our investigation, we can dig deeper. To avoid losing any information, changes are written to disk after each ‘commit’.Ī review is stored in a file as XML. Multiple review files can be merged into one file. All data from an annotation is stored in an XML file.

#DELPHI ADD IN .NET REFLECTOR CODE#

If you’re planning to share these annotations with the rest of the team, I recommend that you save the file with your source code and commit them into your source control repository. Upon selecting Save, we are asked for the location where to save the file containing the annotations. A change is composed of a comment, a date, a user, a status and resolution. Any annotation is associated to a code element (type, method, etc…) and contains a list of changes. By using the addin, we can add a new annotation by selecting Ctrl+W. Luckily, the assembly has a description, but I would like to define some more information. At this point, with Peli’s Review Addin by our side we can start learning and making notes.ĭisassembling the assembly displays the attributes which provide additional information about the object. The first stage of familiarising yourself with an API is to load the assembly, located, in our example, in the ANTS Profiler 4 installation directory into Reflector. Browse to your and click Open and Close the Add-Ins window. NET Reflector and click on View > Add-Ins and click on Add. Store your dll in the same folder as Reflector.exe file

#DELPHI ADD IN .NET REFLECTOR ZIP#

Download the add-in from codeplex and extract from the zip file.

#DELPHI ADD IN .NET REFLECTOR INSTALL#

If you haven’t done so, you can install Peli’s add-in using the following steps: In this example, I will be focus on an assembly shipped with ANTS Profiler 4 called, which allows you to interact with the ANTS timeline. Previously, notes about the API would have been lost in the sea of papers on my desktop, yet with Peli’s addin I can now have my notes and have them attached to the associated object. In a similar fashion to performing a code review, learning an API is about studying the different sections, gaining knowledge and making comments in a centralised place. Testers learning what developers have implemented, and testers who are new on a projectįor many years, I have been using Reflector to help me discover how an API works.Developers learning and understanding the APIs.Senior developers who need to review and understand the code of their team without necessarily having to check out the source.Make your own personal documentation as you learn more about the code and how it all links together.Annotate potential problems with the code (Coding Conventions, Error Handling, Resource Leaks, and Performance etc.).Normally, you would be able to make comments as part of the source code, but if you were to be sent builds with no source code files, you wouldn’t be able to make comments in the source code itself. NET Reflector and the Review add-in: they will be able to match your comments with specific assemblies, classes and functions as well as specific code blocks. You can then email the xml file to your colleagues and they can load it up in. You can review a set of objects and associate your comments with a specific object. The review Add-in is particularly useful if you have development teams across different locations. It is checked in and out separately from the code itself, and can be sent to the team responsible for the code.

delphi add in .net reflector

Your comments are stored separately, but can be consolidated with other review material. With a large project involving several teams, this is a godsend, but it is handy for any project that is subject to rigorous source control. With Peli’s add-in, you can comment on compiled code in an assembly. Where it comes into its own is where you are reviewing a module for which you do not have the source checked out. Why do you need a tool like this for code reviews? You probably wouldn’t consider it for a formal code Review such as Fagan, but it is ideal for lightweight code Reviews. Peli’s Review is a good example of a Reflector Add-in, which can be used in order to extend Reflector for specific purposes. NET Reflector so that you can not only browse the source code of NET assemblies, but can also comment on classes and methods, and use the tool as part of a Lightweight Code Review. Annotating changes: a tool for helping with code reviews.











Delphi add in .net reflector