Ejemplo n.º 1
0
        public MutableFieldInfo AddField(string name, FieldAttributes attributes, Type type)
        {
            ArgumentUtility.CheckNotNullOrEmpty("name", name);
            ArgumentUtility.CheckNotNull("type", type);

            var field = _mutableMemberFactory.CreateField(this, name, type, attributes);

            _addedFields.Add(field);

            return(field);
        }