Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyValuePairs does not recognize the Key and Value properties #64

Open
WookieCode13 opened this issue Nov 30, 2016 · 0 comments
Open

KeyValuePairs does not recognize the Key and Value properties #64

WookieCode13 opened this issue Nov 30, 2016 · 0 comments
Assignees

Comments

@WookieCode13
Copy link

WookieCode13 commented Nov 30, 2016

Having issues with KeyValuePairs, no getter or setter, on Key and Value.

HoursByDate = new System.Collections.Generic.Dictionary<System.DateTime, decimal>
{
		new KeyValuePair<System.DateTime,decimal>
		{
			Key = new DateTime(2015, 12, 23),
			Value = 85.14m
		},
		new System.Collections.Generic.KeyValuePair<System.DateTime,decimal>
		{
			Key = new DateTime(2015, 12, 9),
			Value = 78.24m
		},
}

When i switch them to...

HoursByDate = new System.Collections.Generic.Dictionary<System.DateTime, decimal>
{		
		{
			 new DateTime(2015, 12, 12, 23, 0, 0, 0),
			 85.14m
		},
}

Everything seems to be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants