I'm in a sitefinity project, trying to make an ImetaField type variable, in order to integrate a date field into my widget.
我在sitefinity项目中,尝试创建一个ImetaField类型变量,以便将日期字段集成到我的小部件中。
The error:
My references and namespace and class header:
我的引用和名称空间和类头:
Not sure if this is enough information to go on... Edit: I guess my main question is, what library do I need to reference for ImetaField?
不确定这是否足以继续...编辑:我想我的主要问题是,我需要为ImetaField引用哪些库?
1 个解决方案
#1
So I figured out, you don't a freakin' ImetaField type to get the date, just use DateTime!
所以我想通了,你不是一个疯狂的'ImetaField类型来获取日期,只需使用DateTime!
Still, I never found out how to use ImetaField, nor do I know now what it may be used for.
尽管如此,我从未发现如何使用ImetaField,现在我也不知道它可能用于什么。
What I learned: googling for code in sitefinity is bad.
我学到了什么:在sitefinity中搜索代码是不好的。
#1
So I figured out, you don't a freakin' ImetaField type to get the date, just use DateTime!
所以我想通了,你不是一个疯狂的'ImetaField类型来获取日期,只需使用DateTime!
Still, I never found out how to use ImetaField, nor do I know now what it may be used for.
尽管如此,我从未发现如何使用ImetaField,现在我也不知道它可能用于什么。
What I learned: googling for code in sitefinity is bad.
我学到了什么:在sitefinity中搜索代码是不好的。