Пример #1
0
 internal CollectionEntry(GetMembersDelegate getMembers, GetMemberDelegate getMember, bool shouldReplicateWhenReturning, bool shouldCloneWhenReturning, string collectionNameForTracing)
 {
     this.getMembers = getMembers;
     this.getMember  = getMember;
     this.shouldReplicateWhenReturning = shouldReplicateWhenReturning;
     this.shouldCloneWhenReturning     = shouldCloneWhenReturning;
     this.collectionNameForTracing     = collectionNameForTracing;
 }
Пример #2
0
        public NativeOverloadImpl(Marshaller marshaller, GetMembersDelegate getMembers, WrapMmemberDelegate wrapMember)
        {
            if (marshaller == null)
            {
                throw new ArgumentNullException("marshaller");
            }
            if (getMembers == null)
            {
                throw new ArgumentNullException("getMembers");
            }
            if (wrapMember == null)
            {
                throw new ArgumentNullException("wrapMember");
            }

            m_marshaller = marshaller;
            GetMembers   = getMembers;
            WrapMember   = wrapMember;
        }