コード例 #1
0
ファイル: Field113.cs プロジェクト: arielhernannapoli/ProWide
        /// <summary>
        /// Copy constructor.<br>
        /// Initializes the components list with a deep copy of the source components list. </summary>
        /// <param name="source"> a field instance to copy
        /// @since 7.7 </param>
        public static Field113 newInstance(Field113 source)
        {
            Field113 cp = new Field113();

            cp.Components = new List <>(source.Components);
            return(cp);
        }
コード例 #2
0
ファイル: Field113.cs プロジェクト: arielhernannapoli/ProWide
        public static Field113 fromJson(string json)
        {
            Field113   field      = new Field113();
            JsonParser parser     = new JsonParser();
            JsonObject jsonObject = (JsonObject)parser.parse(json);

            if (jsonObject.get("bankingPriority") != null)
            {
                field.Component1 = jsonObject.get("bankingPriority").AsString;
            }
            return(field);
        }