Пример #1
0
 private ParameterReflector(ParameterInfo reflectionInfo)
 {
     _reflectionInfo            = reflectionInfo ?? throw new ArgumentNullException(nameof(reflectionInfo));
     _customAttributeReflectors = _reflectionInfo.CustomAttributes.Select(data => CustomAttributeReflector.Create(data)).ToArray();
     HasDeflautValue            = reflectionInfo.HasDefaultValue;
     if (HasDeflautValue)
     {
         DefalutValue = reflectionInfo.DefaultValue;
     }
     Position      = reflectionInfo.Position;
     ParameterType = reflectionInfo.ParameterType;
 }
 protected MemberReflector(TMemberInfo reflectionInfo)
 {
     _reflectionInfo            = reflectionInfo ?? throw new ArgumentNullException(nameof(reflectionInfo));
     _customAttributeReflectors = _reflectionInfo.CustomAttributes.Select(data => CustomAttributeReflector.Create(data)).ToArray();
 }