Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 2.04 KB

File metadata and controls

36 lines (26 loc) · 2.04 KB

MemberAdapter Class

Index > ExpressionPowerTools.Core > ExpressionPowerTools.Core.Members > MemberAdapter

Handles translation and comparison of members. Responsible for composing a unique MethodInfo into a string with enough information to re-build the member. Uses the XML Docs algorithm as a baseline, but extends it for closures. Also handles anonymous types.

public class MemberAdapter : IMemberAdapter

Inheritance ObjectMemberAdapter

Implements IMemberAdapter

Constructors

Ctor Description
MemberAdapter() Initializes a new instance of the MemberAdapter class.

Methods

Method Description
Int32 ClosedGenericsCount(String key) Counts closed generics to provide a good type name.
String GetKeyForMember(MemberInfo member) Gets a unique string that identifies the member.
MemberInfo GetMemberForKey(String key) Uses the key to build the proper MemberInfo reference.
Type MakeAnonymousType(ValueTuple properties)
Void Reset() Clears all caches. Primary for testing.

Generated Copyright Version
02/22/2021 21:59:57 (c) Copyright 2020 Jeremy Likness. 0.9.7-beta