New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
B.Tech Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
PROSENJIT MANN...
(832)
Mr. Anindya
(453)
ashish
(422)
Last 7 Days
PROSENJIT MANN...
(1946)
Shobha Manasa
(1774)
Lenin
(1522)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
Time To Double Operation in C Sharp
Posted Date: Total Responses:
0
Posted By:
Mahesh
Member Level:
Platinum
Points/Cash
: 3
using System;
using System.Collections.Generic;
using System.Text;
namespace FormulaEditor
{
///
/// Conversion of time to date time
///
public class TimeToDoubleOperation : IObjectOperation, IOperationAcceptor, IOperationDetector
{
#region Fields
static public readonly TimeToDoubleOperation Object = new TimeToDoubleOperation();
const Double a = 0;
#endregion
#region Ctor
private TimeToDoubleOperation()
{
}
#endregion
#region IObjectOperation Members
int IObjectOperation.Arity
{
get { return 1; }
}
object IObjectOperation.this[object[] x]
{
get
{
DateTime dt = (DateTime)x[0];
return dt.ToOADate();
}
}
object IObjectOperation.ReturnType
{
get { return a; }
}
bool IObjectOperation.IsPowered
{
get { return true; }
}
#endregion
#region IOperationAcceptor Members
IObjectOperation IOperationAcceptor.Accept(object type)
{
if (type is DateTimeSymbol)
{
return new TimeToDoubleOperation();
}
return null;
}
#endregion
#region IOperationDetector Members
IOperationAcceptor IOperationDetector.Detect(MathSymbol s)
{
if (s.SymbolType == (byte)FormulaConstants.Unary & s.Symbol != '\u2211' & !(s.Symbol + "").Equals("'"))
{
if (s.Symbol == 'o')
{
return new TimeToDoubleOperation();
}
}
return null;
}
#endregion
}
}
Project Feedbacks
No feedbacks found. Be the first to respond and make money from
revenue sharing program
.
Post Feedback
You must
Sign In
to post a feedback.
Next Project:
Object Formula Tree in C Sharp
Previous Project:
Poly Sum- IObjectOperation in C Sharp
Return to Project Index
Post New Project
Related Projects
Elementary Formula Simplification using C Sharp
Animator in the Java Vector
Graphics and toolkit using c
Implementation of error detecting technique(CRC) using C Language.
To generate Three Address Statement using C++
Advertise Here
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.