Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6352545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:13:36+00:00 2026-05-24T22:13:36+00:00

I have a method Public Property ConfigKeys(ByVal keyName As String) As WinItUtils.Classes.ConfigKey Get Return

  • 0

I have a method

 Public Property ConfigKeys(ByVal keyName As String) As WinItUtils.Classes.ConfigKey
            Get
                Return GetConfigKey(keyName)
            End Get
            Set(ByVal value As WinItUtils.Classes.ConfigKey)
                SetConfigKey(value)
            End Set
        End Property

and converter http://www.developerfusion.com/tools/convert/vb-to-csharp/ gives me

public WinItUtils.Classes.ConfigKey ConfigKeys
        {
            get { return GetConfigKey(keyName); }
            set { SetConfigKey(value); }
        }

which is nonsense. Or maybe this is something that I don’t know :/
I’m newbie in visual basic, so maybe I’m missing something
I’m using .net 4.0

Here is the ConfigKey class:

Namespace Classes

    ''' <summary>
    ''' Business class that implements a configuration key from WINIT_CONFIG table.
    ''' </summary>
    ''' <remarks></remarks>
    Public Class ConfigKey
        Implements IEquatable(Of ConfigKey)

        Private _resourceKey As String

        Private _value As String

        Private _id As Integer

        Private _handlerId As Integer

        Private _configType As WinItUtils.Enums.WinItConfigTypes

        Public Sub New()
        End Sub

        Public Property Id() As Integer
            Get
                Return _id
            End Get
            Set(ByVal value As Integer)
                _id = value
            End Set
        End Property

        Public ReadOnly Property IsGlobal() As Boolean
            Get
                Return _handlerId < 0
            End Get
        End Property

        Public Property HandlerId() As Integer
            Get
                Return _handlerId
            End Get
            Set(ByVal value As Integer)
                _handlerId = value
            End Set
        End Property

        Public Property ResourceKey() As String
            Get
                Return _resourceKey
            End Get
            Set(ByVal value As String)
                _resourceKey = value
            End Set
        End Property

        Public Property ConfigType() As WinItUtils.Enums.WinItConfigTypes
            Get
                Return _configType
            End Get
            Set(ByVal value As WinItUtils.Enums.WinItConfigTypes)
                _configType = value
            End Set
        End Property

        Public Property Value() As String
            Get
                Return _value
            End Get
            Set(ByVal value As String)
                _value = value
            End Set
        End Property

        Public Overrides Function Equals(ByVal obj As Object) As Boolean
            Return Equals(TryCast(obj, ConfigKey))
        End Function

        Public Overloads Function Equals(ByVal other As ConfigKey) As Boolean _
        Implements IEquatable(Of ConfigKey).Equals
            If other Is Nothing Then
                Return False
            End If

            Return _handlerId = other.HandlerId And _resourceKey.Equals(other.ResourceKey) And _configType = other.ConfigType
        End Function

    End Class

End Namespace
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:13:37+00:00Added an answer on May 24, 2026 at 10:13 pm

    You don’t have a method.

    That is a parameterized property, which C# does not support.

    There is no direct translation of your code into C#.
    Instead, you should make a regular property that returns a Dictionary<string, ConfigKey>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following method: public object[] GetEventsByUser(DateTime start, DateTime end, string fullUrl) The
I have a method that sets a property public void SetNetworkCredential(string userName, string password,
Let's say we have a method: public String wishes(Date birthday) { String birthayDateString =
In code-behind of an ASP.NET page I have this method: public string TestFunc() {
I have the following method public static void SerializeToXMLFile(Object obj,Type type, string fileName) {
I have the following method: public void PutFile(string ID, Stream content) { try {
I have the following method : public List<string> someMethod() { // populate list of
I have myObjects = List(of myObject) myObject has Public Property myProperty as string Is
Let's assume I have a method like this: public static List<T> Get<T>(this SomeObject<T>, Expressions<Func<T,bool>>
I have this method: public bool CanExecute() And after 70 commits, I added an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.