Пример #1
0
 // For properties representing primitive strings (id, url, div), as
 // rendered as attributes in the xml
 internal PocoElementNavigator(Introspection.PropertyMapping map, string value)
 {
     _string     = value ?? throw Error.ArgumentNull(nameof(value));
     PropMap     = map;
     Name        = map.Name;
     _arrayIndex = 0;
 }
Пример #2
0
 // For Normal element properties representing a FHIR type
 internal PocoElementNavigator(Introspection.PropertyMapping map, Base value, int arrayIndex)
 {
     _pocoElement = value ?? throw Error.ArgumentNull(nameof(value));
     PropMap      = map;
     Name         = map.Name;
     _arrayIndex  = arrayIndex;
 }
        // For properties representing primitive strings (id, url, div), as
        // rendered as attributes in the xml
        internal PocoElementNavigator(Introspection.PropertyMapping map, string value)
        {
            if (value == null)
            {
                throw Error.ArgumentNull("value");
            }

            _string = value;
            PropMap = map;
            Name    = map.Name;
        }