Beispiel #1
0
        public ProjectAssetAttribute(ProjectAssetType type)
        {
            this.type = type;
            switch (type)
            {
            case ProjectAssetType.Bytes:
                this.extension = "bytes";
                break;

            case ProjectAssetType.Xml:
                this.extension = "xml";
                break;

            case ProjectAssetType.Json:
                this.extension = "json";
                break;
            }
        }
Beispiel #2
0
 public ProjectAssetAttribute(ProjectAssetType type, string extension)
 {
     this.type      = type;
     this.extension = extension;
 }
 public ProjectAssetSerializerAttribute(ProjectAssetType type, Type serializer)
 {
     this.type       = type;
     this.serializer = serializer;
 }