Esempio n. 1
0
        /// <summary>
        /// Wraps the 'Void WriteByte(Byte)' on the 'System.IO.Stream' type.
        /// </summary>
        /// <param name="value">The value of the 'value' parameter.</param>
        public override void WriteByte(byte value)
        {
            var type       = WrapperUtilities.GetTypeFromCache("System.IO.Stream", "mscorlib", TypeCache);
            var methodInfo = WrapperUtilities.GetMethodInfo(type, MethodInfoCache, "Void WriteByte(Byte)");

            WrapperUtilities.InvokeMethodWithoutResult(this, methodInfo, new object[] { value });
        }
Esempio n. 2
0
        /// <summary>
        /// Wraps the 'Void EndWrite(System.IAsyncResult)' on the 'System.IO.Stream' type.
        /// </summary>
        /// <param name="asyncResult">The value of the 'asyncResult' parameter.</param>
        public override void EndWrite(System.IAsyncResult asyncResult)
        {
            var type       = WrapperUtilities.GetTypeFromCache("System.IO.Stream", "mscorlib", TypeCache);
            var methodInfo = WrapperUtilities.GetMethodInfo(type, MethodInfoCache, "Void EndWrite(System.IAsyncResult)");

            WrapperUtilities.InvokeMethodWithoutResult(this, methodInfo, new object[] { asyncResult });
        }
Esempio n. 3
0
        /// <summary>
        /// Wraps the 'Void Write(Byte[], Int32, Int32)' on the 'System.IO.Stream' type.
        /// </summary>
        /// <param name="buffer">The value of the 'buffer' parameter.</param>
        /// <param name="offset">The value of the 'offset' parameter.</param>
        /// <param name="count">The value of the 'count' parameter.</param>
        public override void Write(byte[] buffer, int offset, int count)
        {
            var type       = WrapperUtilities.GetTypeFromCache("System.IO.Stream", "mscorlib", TypeCache);
            var methodInfo = WrapperUtilities.GetMethodInfo(type, MethodInfoCache, "Void Write(Byte[], Int32, Int32)");

            WrapperUtilities.InvokeMethodWithoutResult(this, methodInfo, new object[] { buffer, offset, count });
        }
Esempio n. 4
0
        /// <summary>
        /// Wraps the 'Void Reset()' on the 'System.Collections.IEnumerator' type.
        /// </summary>
        public virtual void Reset()
        {
            var type       = WrapperUtilities.GetTypeFromCache("System.Collections.IEnumerator", "mscorlib", TypeCache);
            var methodInfo = WrapperUtilities.GetMethodInfo(type, MethodInfoCache, "Void Reset()");

            WrapperUtilities.InvokeMethodWithoutResult(this, methodInfo, new object[] { });
        }
Esempio n. 5
0
        /// <summary>
        /// Wraps the 'Void CopyTo(T[], Int32)' on the 'System.Collections.ObjectModel.ReadOnlyCollection`1' type.
        /// </summary>
        /// <param name="array">The value of the 'array' parameter.</param>
        /// <param name="index">The value of the 'index' parameter.</param>
        public virtual void CopyTo(WrappedArray <T> array, int index)
        {
#if !WINDOWS_PHONE
            WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void CopyTo(T[], Int32)"), new object[] { array, index });
#else
            WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.Void CopyTo(T[], System.Int32)"), new object[] { array, index });
#endif
        }
Esempio n. 6
0
        /// <summary>
        /// Wraps the 'Void Close()' on the 'System.IO.Stream' type.
        /// </summary>
        public override void Close()
        {
            var type       = WrapperUtilities.GetTypeFromCache("System.IO.Stream", "mscorlib", TypeCache);
            var methodInfo = WrapperUtilities.GetMethodInfo(type, MethodInfoCache, "Void Close()");

            WrapperUtilities.InvokeMethodWithoutResult(this, methodInfo, new object[] { });
            this.Dispose(true);
        }
Esempio n. 7
0
        /// <summary>
        /// Gets or sets a value of the 'Item' property on 'System.Collections.Generic.IList`1'
        /// </summary>
        /// <param name="index">The value of the 'index' parameter.</param>
        public virtual T this[int index]
        {
            get
            {
                return(WrapperUtilities.InvokeMethodAndWrap <T>(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "T get_Item(Int32)"), new object[] { index }));
            }

            set
            {
                WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void set_Item(Int32, T)"), new object[] { index, value });
            }
        }
Esempio n. 8
0
 /// <summary>
 /// Wraps the 'Void CopyTo(System.Array, Int32)' on the 'System.Collections.ICollection' type.
 /// </summary>
 /// <param name="array">The value of the 'array' parameter.</param>
 /// <param name="index">The value of the 'index' parameter.</param>
 public virtual void CopyTo(WrappedObject array, int index)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void CopyTo(System.Array, Int32)"), new object[] { array, index });
 }
Esempio n. 9
0
 /// <summary>
 /// Wraps the 'Void Dispose()' on the 'System.IDisposable' type.
 /// </summary>
 public virtual void Dispose()
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Dispose()"), new object[] { });
 }
Esempio n. 10
0
 /// <summary>
 /// Wraps the 'Void Load(T)' on the 'Microsoft.OData.Client.DataServiceCollection`1' type.
 /// </summary>
 /// <param name="item">The value of the 'item' parameter.</param>
 public virtual void Load(T item)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Load(T)"), new object[] { item });
 }
Esempio n. 11
0
 /// <summary>
 /// Wraps the 'Void Load(System.Collections.Generic.IEnumerable`1[T])' on the 'Microsoft.OData.Client.DataServiceCollection`1' type.
 /// </summary>
 /// <param name="items">The value of the 'items' parameter.</param>
 public virtual void Load(WrappedIEnumerable <T> items)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Load(System.Collections.Generic.IEnumerable`1[T])"), new object[] { items });
 }
Esempio n. 12
0
 /// <summary>
 /// Wraps the 'Void Clear(Boolean)' on the 'Microsoft.OData.Client.DataServiceCollection`1' type.
 /// </summary>
 /// <param name="stopTracking">The value of the 'stopTracking' parameter.</param>
 public virtual void Clear(bool stopTracking)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Clear(Boolean)"), new object[] { stopTracking });
 }
Esempio n. 13
0
 /// <summary>
 /// Wraps the 'Void RemoveAt(Int32)' on the 'System.Collections.Generic.IList`1' type.
 /// </summary>
 /// <param name="index">The value of the 'index' parameter.</param>
 public virtual void RemoveAt(int index)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void RemoveAt(Int32)"), new object[] { index });
 }
Esempio n. 14
0
 /// <summary>
 /// Wraps the 'Void Insert(Int32, T)' on the 'System.Collections.Generic.IList`1' type.
 /// </summary>
 /// <param name="index">The value of the 'index' parameter.</param>
 /// <param name="item">The value of the 'item' parameter.</param>
 public virtual void Insert(int index, T item)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, WrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Insert(Int32, T)"), new object[] { index, item });
 }