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
48f37511
Commit
48f37511
authored
Jan 27, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 Range, BorderSearch, GetSample
parent
7b6f8b44
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
3 deletions
+41
-3
Range.cs
Project.FLY.Misc/MISC/Range.cs
+40
-0
BorderSearch.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearch.cs
+0
-2
GetSample.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GetSample.cs
+1
-1
No files found.
Project.FLY.Misc/MISC/Range.cs
View file @
48f37511
...
@@ -4,6 +4,7 @@ using System.Linq;
...
@@ -4,6 +4,7 @@ using System.Linq;
using
System.Text
;
using
System.Text
;
using
System.ComponentModel
;
using
System.ComponentModel
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json
;
using
System.Collections
;
namespace
Misc
namespace
Misc
{
{
...
@@ -372,6 +373,45 @@ namespace Misc
...
@@ -372,6 +373,45 @@ namespace Misc
}
}
/// <summary>
/// Range 比较器
/// </summary>
public
class
RangeEqualityComparer
:
IEqualityComparer
<
Range
>
{
/// <summary>
///
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <returns></returns>
public
bool
Equals
(
Range
x
,
Range
y
)
{
if
((
x
.
Begin
==
y
.
Begin
)
&&
(
x
.
End
==
y
.
End
))
{
return
true
;
}
else
return
false
;
}
/// <summary>
///
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
public
int
GetHashCode
(
Range
obj
)
{
int
hashCode
=
obj
.
Begin
.
GetHashCode
();
int
hashCode2
=
obj
.
End
.
GetHashCode
();
if
(
hashCode
!=
hashCode2
)
{
hashCode
^=
hashCode2
;
}
return
hashCode
;
}
}
public
static
class
EListRange
public
static
class
EListRange
{
{
/// <summary>
/// <summary>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearch.cs
View file @
48f37511
...
@@ -20,7 +20,6 @@ namespace FLY.Thick.Base.Server
...
@@ -20,7 +20,6 @@ namespace FLY.Thick.Base.Server
#
endregion
#
endregion
#
region
属性,成员变量的代理
#
region
属性,成员变量的代理
/// <summary>
/// <summary>
/// 启动与否
/// 启动与否
/// </summary>
/// </summary>
...
@@ -58,7 +57,6 @@ namespace FLY.Thick.Base.Server
...
@@ -58,7 +57,6 @@ namespace FLY.Thick.Base.Server
/// </summary>
/// </summary>
public
int
Width
{
get
;
protected
set
;
}
public
int
Width
{
get
;
protected
set
;
}
private
int
mid
;
/// <summary>
/// <summary>
/// 膜中间位置 单位 脉冲
/// 膜中间位置 单位 脉冲
/// </summary>
/// </summary>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GetSample.cs
View file @
48f37511
...
@@ -350,7 +350,7 @@ namespace FLY.Thick.Base.Server
...
@@ -350,7 +350,7 @@ namespace FLY.Thick.Base.Server
}
}
else
else
{
{
return
n
ull
;
return
n
ew
Range
()
;
}
}
}
}
/// <summary>
/// <summary>
...
...
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