Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

proxy: Property get/set via CLR properties #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arfbtwn
Copy link
Contributor

@arfbtwn arfbtwn commented Oct 10, 2017

Property Get/Set is handled by two additional functions in the BusObject
class, the IL is generated specifically for them.

@arfbtwn
Copy link
Contributor Author

arfbtwn commented Oct 10, 2017

Noticed there was some activity on the repository so I've updated the property support that I worked on some while back and isolated it in its own branch this time round. Any chance of a review? (Resolves #18 and #51)

break;
case "Get":
mi = pi.GetGetMethod ();
pc = TypeImplementer.GenGetCall(pi);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Cache the result of delegate generation. I used a dedicated class on my master branch for this but it seemed a bit overkill when I revisited the patch.


return method_builder;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed this for avoiding implementation of property methods and quickly defining method override boilerplate - I avoided any changes elsewhere but it's identical to the block used for defining method overrides in the regular case of a declared interface method.

Move this pair of extensions to their own file?

} catch (Exception e) {
raisedException = e;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my master branch I had refactored this copy/paste into a function called IssueReply but I've avoided that change to try and keep the patch small.

@arfbtwn
Copy link
Contributor Author

arfbtwn commented Oct 14, 2017

chance of a review, @garuma?

Base automatically changed from master to main March 10, 2021 16:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant