Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapper Proposed API #26

Open
22 of 38 tasks
JustNrik opened this issue Oct 1, 2020 · 0 comments
Open
22 of 38 tasks

Mapper Proposed API #26

JustNrik opened this issue Oct 1, 2020 · 0 comments
Labels
contribution Contribution wanted and heavily appreciated help wanted Help wanted up for grabs Up for grabs.

Comments

@JustNrik
Copy link
Owner

JustNrik commented Oct 1, 2020

The implementation of this type should satisfy the followings:

Note: If you want to contribute to this issue, please do it on feature-Mapper branch, Thanks.

1. Expose the following properties:

  • ReadOnlyList<ConstructorData> Constructors
  • ReadOnlyList<EventData> Events
  • ReadOnlyList<FieldData> Fields
  • ReadOnlyList<MethodData> Methods
  • ReadOnlyList<PropertyData> Properties

2. Data members should expose:

ConstructorData

  • ReadOnlyList<ParameterInfo> Parameters
  • bool IsDefaultConstructor
  • object CreateInstance()
  • T CreateInstance<T>()
  • object CreateInstance(object[])
  • T CreateInstance<T>(object[])

EventData

  • Type EventType
  • Delegate[] GetInvocationList()
  • void AddHandler(Delegate)
  • void RemoveHandler(Delegate)
  • void RaiseEvent(object[]?)

FieldData

  • Type ReturnType
  • object GetValue(object?)
  • void SetValue(object?, object?)

MethodData

  • Type ReturnType
  • object? Invoke()
  • object? Invoke(object[])

PropertyData

  • Type ReturnType
  • bool IsIndexer
  • MethodData GetMethod
  • MethodData SetMethod
  • object GetValue(object?)
  • void SetValue(object?, object?)

3. Add tests to ensure all the implementation is correct.

  • ReadOnlyList<ConstructorData> Constructors
  • ReadOnlyList<EventData> Events
  • ReadOnlyList<FieldData> Fields
  • ReadOnlyList<MethodData> Methods
  • ReadOnlyList<PropertyData> Properties
  • ConstructorData
  • EventData
  • FieldData
  • MethodData
  • PropertyData
@JustNrik JustNrik added contribution Contribution wanted and heavily appreciated help wanted Help wanted up for grabs Up for grabs. labels Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Contribution wanted and heavily appreciated help wanted Help wanted up for grabs Up for grabs.
Projects
None yet
Development

No branches or pull requests

1 participant