Esempio n. 1
0
 public FieldModel(FieldBase fieldMetadata)
 {
     this.Name        = fieldMetadata.Name;
     this.Type        = TypeModel.GetOrAdd(fieldMetadata.Type);
     this.AccessLevel = fieldMetadata.AccessLevel;
     this.StaticEnum  = fieldMetadata.StaticEnum;
 }
Esempio n. 2
0
        public MethodModel(MethodBase baseMethod)
        {
            this.Name         = baseMethod.Name;
            this.AbstractEnum = baseMethod.AbstractEnum;
            this.AccessLevel  = baseMethod.AccessLevel;
            this.Extension    = baseMethod.Extension;
            this.ReturnType   = TypeModel.GetOrAdd(baseMethod.ReturnType);
            this.StaticEnum   = baseMethod.StaticEnum;
            this.VirtualEnum  = baseMethod.VirtualEnum;

            GenericArguments = baseMethod.GenericArguments?.Select(TypeModel.GetOrAdd).ToList();

            Parameters = baseMethod.Parameters?.Select(t => new ParameterModel(t)).ToList();
        }
Esempio n. 3
0
 public ParameterModel(ParameterBase parameterMetadata)
 {
     this.Name = parameterMetadata.Name;
     this.Type = TypeModel.GetOrAdd(parameterMetadata.Type);
 }
Esempio n. 4
0
 public NamespaceModel(NamespaceBase namespaceMetadata)
 {
     this.Name = namespaceMetadata.Name;
     Types     = namespaceMetadata.Types?.Select(t => TypeModel.GetOrAdd(t)).ToList();
 }
Esempio n. 5
0
 public PropertyModel(PropertyBase propertyMetadata)
 {
     this.Name = propertyMetadata.Name;
     this.Type = TypeModel.GetOrAdd(propertyMetadata.Type);
 }