예제 #1
0
        private MemberEventArgs GetMemberEventArgs(MemberInfo member, Type memberReturnType, Type visitingType)
        {
            var typeInfo      = this.language.GetTypeInfo(memberReturnType);
            var isOwnProperty = member.DeclaringType == visitingType;
            var args          = new MemberEventArgs()
            {
                MemberName              = member.Name,
                MemberTypeName          = typeInfo.Name,
                MemberTypeFullName      = typeInfo.FullName,
                MemberTypeNameSpaceName = typeInfo.NameSpaceName,
                IgnoredByGenerators     = this.IgnoreLanguages(member),
                IsOwnProperty           = isOwnProperty
            };

            return(args);
        }
예제 #2
0
        private MemberEventArgs GetMemberEventArgs(MemberInfo member, Type memberReturnType, Type visitingType)
        {
            var typeInfo = this.language.GetTypeInfo(memberReturnType);
            var isOwnProperty = member.DeclaringType == visitingType;
            var args = new MemberEventArgs()
            {
                MemberName = member.Name,
                MemberTypeName = typeInfo.Name,
                MemberTypeFullName = typeInfo.FullName,
                MemberTypeNameSpaceName = typeInfo.NameSpaceName,
                IgnoredByGenerators = this.IgnoreLanguages(member),
                IsOwnProperty = isOwnProperty
            };

            return args;
        }