private void AssertMemberType <T>(string memberName, Type type, ICollection <T> collection) where T : class { IMemberDescription member = GetItemByName(memberName, collection) as IMemberDescription; Assert.NotNull(member); Assert.True(member.Type == type); }
public SerializableMember(LibraryTypes wellKnownTypes, ISerializableTypeDescription type, IMemberDescription member, int ordinal) { this.wellKnownTypes = wellKnownTypes; this.model = type.SemanticModel; this.Description = member; this.ordinal = ordinal; }