Example #1
0
 public NetMethodInfo(NetTypeInfo parentTypeInfo,
                      string methodName,
                      NetTypeInfo returnTypeInfo,
                      bool isStatic)
     : this(Create(parentTypeInfo, methodName, returnTypeInfo, isStatic))
 {
 }
Example #2
0
 private static IntPtr Create(NetTypeInfo parentTypeInfo,
                              string methodName,
                              NetTypeInfo returnTypeInfo)
 {
     return(Interop.NetMethodInfo.Create(parentTypeInfo?.Handle ?? IntPtr.Zero,
                                         methodName,
                                         returnTypeInfo?.Handle ?? IntPtr.Zero));
 }
Example #3
0
 private static IntPtr Create(
     NetTypeInfo parentTypeInfo,
     string methodName,
     NetTypeInfo returnTypeInfo,
     bool isStatic)
 {
     return(Interop.NetMethodInfo.Create(
                parentTypeInfo?.Handle ?? IntPtr.Zero,
                methodName,
                returnTypeInfo?.Handle ?? IntPtr.Zero,
                isStatic ? (byte)1 : (byte)0));
 }
Example #4
0
 public NetPropertyInfo(NetTypeInfo parentType,
                        string name,
                        NetTypeInfo returnType,
                        bool canRead,
                        bool canWrite,
                        NetSignalInfo notifySignal)
     : this(Create(parentType,
                   name,
                   returnType,
                   canRead,
                   canWrite,
                   notifySignal))
 {
 }
Example #5
0
 private static IntPtr Create(NetTypeInfo parentType,
                              string name,
                              NetTypeInfo returnType,
                              bool canRead,
                              bool canWrite,
                              NetSignalInfo notifySignal)
 {
     return(Interop.NetPropertyInfo.Create(parentType?.Handle ?? IntPtr.Zero,
                                           name,
                                           returnType?.Handle ?? IntPtr.Zero,
                                           canRead,
                                           canWrite,
                                           notifySignal?.Handle ?? IntPtr.Zero));
 }
Example #6
0
 public void AddParameter(string name, NetTypeInfo type)
 {
     Interop.NetMethodInfo.AddParameter(Handle, name, type.Handle);
 }
Example #7
0
 public NetSignalInfo(NetTypeInfo parentType, string name)
     : this(Interop.NetSignalInfo.Create(parentType.Handle, name))
 {
 }
Example #8
0
 private NetReference(UInt64 objectId, NetTypeInfo type, bool ownsHandle = true)
     : base(Interop.NetReference.Create(objectId, type.Handle), ownsHandle)
 {
 }
Example #9
0
 public void AddIndexParameter(string name, NetTypeInfo type)
 {
     Interop.NetPropertyInfo.AddIndexParameter(Handle, name, type.Handle);
 }
Example #10
0
 public NetMethodInfo(NetTypeInfo parentTypeInfo,
                      string methodName,
                      NetTypeInfo returnTypeInfo)
     : this(Create(parentTypeInfo, methodName, returnTypeInfo))
 {
 }