Пример #1
0
        public static KeModel GetSampleModel()
        {
            if (_model != null)
            {
                return(_model);
            }

            _model = new KeModel();

            _model.Schemas.Add(new KeSchema {
                Namespace = "Microsoft.Graph", DelaringModel = _model
            });
            _model.Schemas.Add(new KeSchema {
                Namespace = "Test.Namespace", DelaringModel = _model
            });

            return(_model);
        }
Пример #2
0
 public KeEnumType(string namespaceName, string name, string underlyingTypeName, bool isFlags)
     : base(namespaceName, name)
 {
     UnderingType = KeModel.GetPrimitiveType(underlyingTypeName);
     IsFlag       = isFlags;
 }