Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
training-csharp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Trần Duy Truyền
training-csharp
Commits
809a9332
Commit
809a9332
authored
Mar 03, 2025
by
Trần Duy Truyền
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
++
parent
89e3f14c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Program.cs
Program.cs
+1
-1
type-casting.cs
type-casting.cs
+9
-0
No files found.
Program.cs
View file @
809a9332
...
@@ -14,7 +14,7 @@ namespace TrainingCSharp
...
@@ -14,7 +14,7 @@ namespace TrainingCSharp
RethrowException
.
Run
();
RethrowException
.
Run
();
break
;
break
;
case
2
:
case
2
:
//Indexer
TypeCasting
.
Run
();
break
;
break
;
default
:
default
:
...
...
type-casting.cs
0 → 100644
View file @
809a9332
public
class
TypeCasting
{
public
static
void
Run
()
{
var
a
=
new
List
<
string
>()
{
"2"
,
"12"
,
"3"
};
var
b
=
a
.
OrderByDescending
(
s
=>
int
.
Parse
(
s
)).
ToList
();
b
.
ForEach
(
e
=>
System
.
Console
.
WriteLine
(
e
));
}
}
\ No newline at end of file
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