[Tool] IL Mapper2 (C #,

Source: Internet
Author: User

[Tool] IL Mapper2 (C #,

: IL_Mapper2.zip

Source File: IL_Mapper2_src.zip

 

Introduction

This tool can directly convert C # code into IL code for viewing, eliminating the hassle of compiling and manual operations on ildsam. I hope this will be helpful to anyone who wants to study IL.

 

:

 

Code note

The interesting question in the source code is "How to enable two-way binding for the Text of aveon. TextEditor ". I referred to the post on stackoverflow yesterday, which is useless. There is no way, so you have to study it carefully. The conclusion is as follows:

1. Only dependency attributes can be bound.

2. The value of the dependency attribute is stored elsewhere, not in the dependent object. The value is accessed through GetValue and SetValue.

3. When binding an expression for execution, call SetValue to assign values to the Dependency Property (TextProperty), instead of calling the Set Method of Text.

4. SetValue updates the value of the dependency attribute, and then calls OnPropertyChange to notify the attribute change. In this case, if two-way binding exists, the data source will be notified to update the value, for example, updating the Code attribute in Controller. In the TextChanged event of TextEditor, this method is used to synchronize the base. Text Value of the Editor to the dependency attribute.

5. In PropertyMetadata (callback), the callback is a callback method of SetValue, and the subsequent action after the dependent attribute value is changed is executed. In this example, the Text value of the dependency attribute is synchronized to base. Text.


What is the difference between French il y a and C' est?

Il y a is equivalent to there is in English, which means "yes". For example, Il y a beaucoup de gens means "Many people ".
C 'est is similar to "this". For example, C 'est ma mè re means "this is my mom ".

CHAOSHENGBOC (67): error C202: 'Il ': undefined identifier

You didn't define il. Suddenly there was a il = 0x01, and the program certainly didn't recognize it. Add a declaration on its last line: int il;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.