PropertyValueBagAddMembers(Object, FuncMemberInfo, Boolean) Method
Adds public instance data members from
o to
Data. For compactness,
null
values are omitted.
Namespace: Quine.Schemas.Core.EventingAssembly: Quine.Schemas.Core (in Quine.Schemas.Core.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
protected void AddMembers(
Object o,
Func<MemberInfo, bool> filter = null
)
Parameters
- o Object
- Object instance that provides data.
- filter FuncMemberInfo, Boolean (Optional)
-
Delegate that receives a field or property info about a public field or property on o
and returns true if the member should be included in Data.
The key for each member is constructed by concatenating the fully qualified name of the declaring type
(to take inheritance into account) with the member name. The type of "simple" values is preserved, other
values are converted to strings.
This method uses reflection, so it should not be used in performance-critical scenarios.