Esempio n. 1
0
        private int WriteArrayObject(Udbus.Serialization.UdbusMessageBuilder builder, object objArray)
        {
            int result;
            if (objArray is Array == false) // If not array
            {
                result = -1;
                throw new System.InvalidCastException("object is not an array");

            } // Ends if not array
            else // Else array
            {
                object[] output = (object[]) objArray;
                result = builder.MarshalEnumerable(output, this.Type, this.ObjectDelegate);

            } // Ends else array

            return result;
        }
Esempio n. 2
0
 private int ReadArrayObject(Udbus.Serialization.UdbusMessageReader reader, out object objDict)
 {
     object[] output;
     int result = reader.MarshalEnumerable(this.ObjectDelegate, this.Type, out output);
     objDict = output;
     return result;
 }
Esempio n. 3
0
 private int WriteArrayObject(Udbus.Serialization.UdbusMessageBuilder builder, Udbus.Containers.dbus_union variantArray)
 {
     int result = builder.MarshalEnumerable(variantArray.DbusObjectArray, this.Type, this.ObjectDelegate);
     return result;
 }
Esempio n. 4
0
 private int ReadArrayObject(Udbus.Serialization.UdbusMessageReader reader, out Udbus.Containers.dbus_union variantArray)
 {
     object[] output;
     int result = reader.MarshalEnumerable(this.ObjectDelegate, this.Type, out output);
     variantArray = Udbus.Containers.dbus_union.Create(output, this.owner.Types.ToArray());
     return result;
 }