Example #1
0
        private static IEnumerable <IScriptField> CreateFields(TypeDefinition type, IReadOnlyDictionary <GenericParameter, TypeReference> arguments)
        {
            List <IScriptField> fields = new List <IScriptField>();

            foreach (FieldDefinition field in type.Fields)
            {
                if (!MonoField.IsSerializable(field, arguments))
                {
                    continue;
                }

                MonoField monoField = new MonoField(field, arguments);
                fields.Add(monoField);
            }
            return(fields);
        }
Example #2
0
 private MonoField(MonoField copy) :
     base(copy)
 {
 }