Download data/DWSIM.SharedClasses/Misc/CCapeCollection.vb from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 794 Bytes
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.SharedClasses/Misc/CCapeCollection.vb
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.SharedClasses/Misc/CCapeCollection.vb
-
curl -L -o CCapeCollection.vb https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.SharedClasses/Misc/CCapeCollection.vb
794 Bytes
| Imports CapeOpen | |
| <System.Serializable()> Public Class CCapeCollection | |
| Implements ICapeCollection | |
| Public _icol As List(Of ICapeIdentification) | |
| Sub New() | |
| _icol = New List(Of ICapeIdentification) | |
| End Sub | |
| Public Function Count() As Integer Implements Global.CapeOpen.ICapeCollection.Count | |
| Return _icol.Count | |
| End Function | |
| Public Function Item(ByVal index As Object) As Object Implements Global.CapeOpen.ICapeCollection.Item | |
| If Integer.TryParse(index, New Integer) Then | |
| Return _icol(index - 1) | |
| Else | |
| For Each p As ICapeIdentification In _icol | |
| If p.ComponentName = index Then Return p Else Return Nothing | |
| Next | |
| Return Nothing | |
| End If | |
| End Function | |
| End Class | |