Example #1
0
 public FieldMetadata(FieldBase fieldMetadata)
 {
     this.Name        = fieldMetadata.Name;
     this.Type        = TypeMetadata.GetOrAdd(fieldMetadata.Type);
     this.AccessLevel = fieldMetadata.AccessLevel.ToLogicEnum();
     this.StaticEnum  = fieldMetadata.StaticEnum.ToLogicEnum();
 }
Example #2
0
        public MethodMetadata(DBCore.Model.MethodBase baseMethod)
        {
            this.Name         = baseMethod.Name;
            this.AbstractEnum = baseMethod.AbstractEnum.ToLogicEnum();
            this.AccessLevel  = baseMethod.AccessLevel.ToLogicEnum();
            this.Extension    = baseMethod.Extension;
            this.ReturnType   = TypeMetadata.GetOrAdd(baseMethod.ReturnType);
            this.StaticEnum   = baseMethod.StaticEnum.ToLogicEnum();
            this.VirtualEnum  = baseMethod.VirtualEnum.ToLogicEnum();

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

            Parameters = baseMethod.Parameters?.Select(t => new ParameterMetadata(t)).ToList();
        }
Example #3
0
 public PropertyMetadata(PropertyBase baseProperty)
 {
     Name = baseProperty.Name;
     Type = TypeMetadata.GetOrAdd(baseProperty.Type);
 }
Example #4
0
 public NamespaceMetadata(NamespaceBase namespaceBase)
 {
     Name  = namespaceBase.Name;
     Types = namespaceBase.Types?.Select(t => TypeMetadata.GetOrAdd(t));
 }
Example #5
0
 public ParameterMetadata(ParameterBase baseElement)
 {
     Name = baseElement.Name;
     Type = TypeMetadata.GetOrAdd(baseElement.Type);
 }