Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

How do I assign an invoked method to a field in CodeDOM?

$
0
0

I have the following desired output:

    public partial class HomeClass
    {

        private UILabelDriver errorLabel;

        private UITextFieldDriver passwordText;

        private UIButtonDriver loginButton;

        private UINavigationBarDriver login;

        protected override void InitializeControls()
        {
            errorLabel = new UILabelDriver("ErrorLabel", TestModel);
            passwordText = new UITextFieldDriver("PasswordText", TestModel);
            loginButton = new UIButtonDriver("LoginButton", TestModel);
            login = new UINavigationBarDriver("Login", TestModel);
        }
	}

I am using CodeDOM and I have everything working right, except for those lines in the InitializeControls method.  I have gotten close, but no cigar.  Please help me to figure out how to writejust one of them in CodeDOM.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>