Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
3ce2bec7
Commit
3ce2bec7
authored
Apr 05, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 fobj.Reflect "asyncDelegate","asyncContext" 为const string
parent
1d3da326
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Reflect_OBJ_INTERFACE.cs
Project.FLY.FObjSys/FObjBaseReflect/Reflect_OBJ_INTERFACE.cs
+3
-0
Reflect_Proxy.cs
Project.FLY.FObjSys/FObjBaseReflect/Reflect_Proxy.cs
+4
-4
No files found.
Project.FLY.FObjSys/FObjBaseReflect/Reflect_OBJ_INTERFACE.cs
View file @
3ce2bec7
...
@@ -9,6 +9,9 @@ namespace FObjBase.Reflect
...
@@ -9,6 +9,9 @@ namespace FObjBase.Reflect
{
{
public
class
Reflect_OBJ_INTERFACE
public
class
Reflect_OBJ_INTERFACE
{
{
public
const
string
asyncDelegate
=
"asyncDelegate"
;
public
const
string
asyncContext
=
"asyncContext"
;
#
region
Push
#
region
Push
public
const
UInt16
PUSH_Event
=
101
;
public
const
UInt16
PUSH_Event
=
101
;
public
const
UInt16
PUSH_PropertyChanged
=
102
;
public
const
UInt16
PUSH_PropertyChanged
=
102
;
...
...
Project.FLY.FObjSys/FObjBaseReflect/Reflect_Proxy.cs
View file @
3ce2bec7
...
@@ -332,11 +332,11 @@ namespace FObjBase.Reflect
...
@@ -332,11 +332,11 @@ namespace FObjBase.Reflect
{
{
var
ptype
=
parameterInfos
[
i
].
ParameterType
;
var
ptype
=
parameterInfos
[
i
].
ParameterType
;
var
pname
=
parameterInfos
[
i
].
Name
;
var
pname
=
parameterInfos
[
i
].
Name
;
if
(
string
.
Compare
(
pname
,
"asyncDelegate"
,
true
)
==
0
)
if
(
string
.
Compare
(
pname
,
Reflect_OBJ_INTERFACE
.
asyncDelegate
,
true
)
==
0
)
{
{
parameters
[
i
]
=
new
AsyncCBHandler
(
asyncDelegate
);
parameters
[
i
]
=
new
AsyncCBHandler
(
asyncDelegate
);
}
}
else
if
(
string
.
Compare
(
pname
,
"asyncContext"
,
true
)
==
0
)
else
if
(
string
.
Compare
(
pname
,
Reflect_OBJ_INTERFACE
.
asyncContext
,
true
)
==
0
)
{
{
parameters
[
i
]
=
new
CC
{
from
=
from
,
srcid
=
srcid
,
magic
=
magic
,
methodName
=
rData
.
name
};
parameters
[
i
]
=
new
CC
{
from
=
from
,
srcid
=
srcid
,
magic
=
magic
,
methodName
=
rData
.
name
};
}
}
...
@@ -367,8 +367,8 @@ namespace FObjBase.Reflect
...
@@ -367,8 +367,8 @@ namespace FObjBase.Reflect
//全部参数名称
//全部参数名称
var
names
=
parameterInfos
.
Select
(
pi
=>
pi
.
Name
).
ToList
();
var
names
=
parameterInfos
.
Select
(
pi
=>
pi
.
Name
).
ToList
();
//删除掉 asyncDelegate,asyncContext
//删除掉 asyncDelegate,asyncContext
names
.
Remove
(
"asyncDelegate"
);
names
.
Remove
(
Reflect_OBJ_INTERFACE
.
asyncDelegate
);
names
.
Remove
(
"asyncContext"
);
names
.
Remove
(
Reflect_OBJ_INTERFACE
.
asyncContext
);
var
names_req
=
parameterNames
;
var
names_req
=
parameterNames
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment