2

質問で述べたように、 dnlibを使用して (文字列型の) 項目を List(Of String) に追加する方法は?

これまでのところ、これは私の進歩です:

Private A As AssemblyDef = AssemblyDef.Load(Filename)
Public Sub AddtoList(ByVal Listname As String, ByVal Item As String)
        For Each ModuleDefintion As ModuleDef In A.Modules
            For Each TypeDefinition As TypeDef In ModuleDefintion.Types
                If TypeDefinition.Name = TypeName Then
                    For Each Field As FieldDef In TypeDefinition.Fields
                        If Field.Name.Equals(Listname) Then
                            ''Add Item to List here
                            ''What is the approach here?
                        End If
                    Next
                End If
            Next
        Next
    End Sub
4

0 に答える 0