예제 #1
0
 public NetMethodInfo(NetTypeInfo parentTypeInfo,
                      string methodName,
                      NetTypeInfo returnTypeInfo,
                      bool isStatic)
     : this(Create(parentTypeInfo, methodName, returnTypeInfo, isStatic))
 {
 }
예제 #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));
 }
예제 #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));
 }
예제 #4
0
 public NetPropertyInfo(NetTypeInfo parentType,
                        string name,
                        NetTypeInfo returnType,
                        bool canRead,
                        bool canWrite,
                        NetSignalInfo notifySignal)
     : this(Create(parentType,
                   name,
                   returnType,
                   canRead,
                   canWrite,
                   notifySignal))
 {
 }
예제 #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));
 }
예제 #6
0
 public void AddParameter(string name, NetTypeInfo type)
 {
     Interop.NetMethodInfo.AddParameter(Handle, name, type.Handle);
 }
예제 #7
0
 public NetSignalInfo(NetTypeInfo parentType, string name)
     : this(Interop.NetSignalInfo.Create(parentType.Handle, name))
 {
 }
예제 #8
0
 private NetReference(UInt64 objectId, NetTypeInfo type, bool ownsHandle = true)
     : base(Interop.NetReference.Create(objectId, type.Handle), ownsHandle)
 {
 }
예제 #9
0
 public void AddIndexParameter(string name, NetTypeInfo type)
 {
     Interop.NetPropertyInfo.AddIndexParameter(Handle, name, type.Handle);
 }
예제 #10
0
 public NetMethodInfo(NetTypeInfo parentTypeInfo,
                      string methodName,
                      NetTypeInfo returnTypeInfo)
     : this(Create(parentTypeInfo, methodName, returnTypeInfo))
 {
 }