Defining Widening Operator And Narrowing Operator

Here is documentation for Widening and Narrowing Operators.
There is confusion.
Which operator should I create for converting one class to another or one structure to other or structure to class or class to structure.
Any proper example that should explain.
Allow time to reverse.

=
With value types
Module Module1
Sub Main()
Dim x As Short = 1
Dim y As Integer = x
Console.WriteLine(y)
Console.ReadLine()
End Sub
End Module
And with classes
Module Module1
Sub Main()
Dim x As New Dog With {.Head = "Blue"}
Dim y as Mamal = x
Console.WriteLine(y.Head)
Console.ReadLine()
End Sub
End Module
Public Class Mamal
Public Property Head As String
End Class
Public Class Dog
Inherits Mamal
End Class
Success
Cor
Am I using right operator here:
Public Module Main
Sub Main()
Dim Someone As Person = "Someone"
Dim Name As String = Someone
Console.WriteLine(Name)
Console.ReadKey()
End Sub
End Module
Public Class Person
Private _Name As String
Public ReadOnly Property Name As String
Get
Return _Name
End Get
End Property
Public Shared Narrowing Operator CType(Person As Person) As String
Return Person._Name
End Operator
Public Shared Narrowing Operator CType(Person As String) As Person
Return New Person(Person)
End Operator
Sub New(Name As String)
Me._Name = Name
End Sub
End Class
Allow time to reverse.

Similar Messages

  • 1.     Defining dependencies between Work order operations and Isolation Operation Steps

    Hi All
    Will you please let me know how i can define dependencies between Work order operations and
    Isolation Operation Steps? Suppoose I want to have WAP--->WCA-->WCD at operation level, is it possible? Can we have the Switching of Status & allowing that perticular operation for releads. e.g. I have operation 1 in Maintenance WO Which needs machine where only operational control panel to be Locked & tagged. No Need to Tag total machine. So once i complete complete the taging for it & once give permits for it, system should permits only that much operation. Not all operation which may have some other permits which needs to be issued.
    Regards
    Makarand      

    Hi All
    Will you please let me know how i can define dependencies between Work order operations and
    Isolation Operation Steps? Suppoose I want to have WAP--->WCA-->WCD at operation level, is it possible? Can we have the Switching of Status & allowing that perticular operation for releads. e.g. I have operation 1 in Maintenance WO Which needs machine where only operational control panel to be Locked & tagged. No Need to Tag total machine. So once i complete complete the taging for it & once give permits for it, system should permits only that much operation. Not all operation which may have some other permits which needs to be issued.
    Regards
    Makarand      

  • Routing number of operations and reference operation  in the order

    Hi experts,
    If anyone knows about Routing number of operations and reference operation  in Maintenance order , please explain.
    is it used for maintenance order? if yes, please mention the path from which I can see or note the number generated by the system as Routing number of operations or operation task list no. or reference operation
    Regards,

    Hello,
    Routing number of operations in the order"(field-->AUFPL) of the order at table AFKO, using order number. Find the Operation counter number of the operation at table AFVC using "Routing number of operations in the order".
    From above we can fetch the Operation Level data of Order by using the Routing number of operations in the order"(field>AUFPL)  .Routing number of operations in the order>which solely identity of the Operation for your order after creation of order it is created this number.
    Regards,
    Rakesh
    Edited by: RAKESH ASHOK MANE on Sep 23, 2010 2:47 PM

  • Operation and Sub operation link in routing -reg

    Hi,
    In one of our report development we have to seggregate the operation number wise suboperations
    which table and fields we have to use ?
    we have to down load all the operations and sub operations for a given routing from the system and should be able to display for this operation these  are all the sub operations and display their operation timings
    please guide
    regards,
    Madhu Kiran

    Hi,
    If i go to some operation and add one sub operation for it , i am not getting in the tables both operation and sub operation
    i think both are getting stored in the same field
    can some one give some logic of fields connection to fetch the sub operatiosn of an operation ?
    PLPH table has no entries at all in our system
    i try to use PLPO and PLAS
    i require basic logic of flow
    how to get the suboperations of an operation
    pl help
    regards,
    madhu kiran

  • Branch operation and return operation for routing in alternative sequence

    Hi all experts.
    I would like to ask which table and field store the value of branch operation and return operation for routing in the alternative sequence. I can only find them in structure (PLFLD-VORNR1 and PLFLD-VORNR2) but I want the table field of them. Would anyone please suggest a solution? Thank you.

    Hi,
    look in table AFFL, here the BKNT1 and BKNT2 refer to those vornr1 and vornr2 of the operation. For example in user-exit ZXCO1U01 you will find the values (BKNT1/2) in the sequence table, and when, for example, filling the LOIPRO01-Idoc, you can use the found VORNR for the E1AFFLL-segment.
    See coding for example on determining VORNR1/2 (sequence_table/operation_table as in user exit EXIT_SAPLCOBT_001):
    SORT operation_table BY vornr.
      LOOP AT sequence_table INTO l_sequence.
        MOVE-CORRESPONDING l_sequence TO l_affl.
    * Read the operation table to determine the vornr1 and vornr2
    *via the value of field BKNT1/2
        IF NOT l_sequence-bknt1 IS INITIAL.
          READ TABLE operation_table INTO l_operation
          WITH KEY aufpl = l_sequence-aufpl
                   aplzl = l_sequence-bknt1.
          IF sy-subrc = 0.
            l_affl-vornr1 = l_operation-vornr.
          ENDIF.
        ENDIF.
        IF NOT l_sequence-bknt2 IS INITIAL.
          READ TABLE operation_table INTO l_operation
          WITH KEY aufpl = l_sequence-aufpl
                   aplzl = l_sequence-bknt2.
          IF sy-subrc = 0.
            l_affl-vornr2 = l_operation-vornr.
          ENDIF.
        ENDIF.
    Cheers,
    S.

  • Mappings between table operator and joiner operator

    HI all,
    I am new to owb. I am trying to create a mapping in the OWB Mapping Editor where the scenario looks like :
    table1 operator ---------> joiner file operator
    i am looking at earlier mappings' sql code and found that there is a where clause condition that governing the above such scenario such as:
    where table1.column value = "something" then load into joiner file operator.
    But in the mapping editor, i cannot find any way to add this condition by clicking on the column name of table1. Please help.
    thank you.

    Hi
    A joiner will make one output from 2 or more inputs. A joiner has a join condition which if you select the operator (not a group or an attribute with operator) the property inspector will have a join condition for detailing the 'where' clause.
    If you want to filter a single input then use a filter operator. Again like condition the filter operator has a filter condition which if you select the operator (not a group or an attribute with operator) the property inspector will have a filter condition for detailing the 'where' clause.
    Cheers
    David

  • Key Operation and Sub operation PM order

    Hi,
    What is the key (table - field) which determines the relationship between the main operation and the sub operation?
    I mean how can you detemrine that suboperation X is indeed a sub operation of this particular operation Y? You have AUFNR, AUFPL, but i'm missing somethin...
    regards,
    bert

    thanks,
    APLZL of main operation and SUMNR of suboperation

  • Group By Operator and statistics operation

    Hi all,
    in my model from the data service I obtain these fields
    sold_to (T)
    delivery_date (D)
    quantity (N)
    zdiff_date (N)
    zindex (N)
    I have to present a table where I have a row for each SOLD_TO and in the columns I'd like to show the average values.
    So the situation should be:
    sold_to | quantity (AVG) | zdiff_date (AVG) | zindex (AVG).
    For this I use the Group by operator where on SOLD_TO field I apply the Group1 and for the others fields I use the average operation.
    My problem .... I don't see the results..... all the average fields are empty but if I apply the sum (for instance) I obtain the right results.
    Where is the problem? Have you ever seen or tested this kind of situation?
    Regards, Roberto

    Hi,
    I applied your suggestion but doesn't work for the AVG. Only for the total (SUM).
    I have these records in input:
    SOLD_TO        |  DELIVERY_DATE | QTY      | DIFF_DAYS   | INDEX
    0000102004    |  02.01.2008           | 1500     | 7                    | 0,00467
    0000102004    |  05.02.2008           | 1500     | 91                  | 0,06067
    0000102004    |  05.29.2008           | 17,010  | 27                  | 0,00159
    Group By Operator:
    SOLD_TO (GROUP1)
    DELIVERY_DATE (NONE)
    QTY (AVG)
    DIFF_DAYS (AVG)
    INDEX (AVG OR STDDEV)
    The results is
    SOLD_TO        |  QTY      | DIFF_DAYS   | INDEX
    0000102004    |               |                       |
    But if apply the following Sigma for the Group by operator
    Group By Operator:
    SOLD_TO (GROUP1)
    DELIVERY_DATE (NONE)
    QTY (SUM)
    DIFF_DAYS (SUM)
    INDEX (SUM)
    The results is
    SOLD_TO        |  QTY      | DIFF_DAYS   | INDEX
    0000102004    |  20,010  |      125           |  0,06693
    Only with the total it seems to work.
    Regards, Roberto

  • Point operations and Neighbourhood operations ???

    Hi everyone, I am currently doing an assignment which is as follow
    *1) Building a program to open a video stream and play it.*
    *2) Perform the same 3 point and 3 neighbourhood operations on the video streams. Consider the object-oriented approach here.*
    I don't understand how can I perform the Point and Neighbourhood operations on video. I have no idea about this. I looked on the Internet, but there are only the codes for point and neighbourhood operations for image, not for video. Would you please give me any idea about how to do this (as detailed as possible) ? And if you don't mind, would you please give me a sample code for these operations ? Thanks so much.
    Also, I just wanna to know what is/are the differences between "+open a video stream+" and "+open a video+". I can write a code to open a video and add it to a frame or a panel, but I am not sure how it is different with the "+open a video stream+" ? Thank you very much for helping me.

    This forum is for help with the JMF framework, not for having your homework explained to you.
    If you have a specific question about how to implement some peice of your homework in JMF, then ask it here. If you have some other question about your homework, ask your professor.

  • Operating and Non-operating temperatures for iPhone 5s

    For all iPhones it is mentioned as below -
    Nonoperating temperature: −4° to 113° F (−20° to 45° C)
    Operating ambient temperature: 32° to 95° F (0° to 35° C)
    Above info is mis-leading.
    So which is  the temperature for optimal usage if all temperatures between −4° to 113° F are non-operating?

    Srikant Chakravorty wrote:
    For all iPhones it is mentioned as below -
    Nonoperating temperature: −4° to 113° F (−20° to 45° C)
    Operating ambient temperature: 32° to 95° F (0° to 35° C)
    Above info is mis-leading.
    No, it's not mis-leading. It is a standard way of marking product temp ranges.
    It can safely be stored (non-operating) in temps of −4° to 113° F (−20° to 45° C)
    If it is hotter or colder than this, it may get damaged.
    It will operate correctly in temps of 32° to 95° F (0° to 35° C).
    Hotter or colder than this and it may not operate.

  • Difference between data logic operation and business operation

    hiii, DI core, main component of DI API, performs all <b>data logic operaton</b> where as OBServer.dll perform <b>bussiness logic operation</b> at database level...
    what is the difference between these operations????

    Hi Nirdesh,
    The DI API offers a number of objects/methods that allow you to access the information stored in the database (tables) by using objects.
    The DI API is represented by the SboBobCOM.dll, in your code you only add a reference to this COM dll. This dll offerst the objects/methods you can access.
    The SbobobCOM.dll is using the OBServer.dll, this dll contains all the business logic rules (like for example: you cannot delete a BusinessPartern if it has already some documents created) that will control all actions you are trying to do with the DI API methods/objects.
    You have a schema representing both dlls in the DI API help file -> Introduction -> DI API components section.
    Regards
    Trinidad.

  • Problem with the pivot operator and Expression operator

    Hey,
    In my design, I have a joiner which joins three different tables. After that I connected a few columns to an expression operator which is used to make some calculations using the three columns. The out put from the joiner is connected to the pivot operator as well as the output of the expression operator is connected to the same.
    This is done becuase I wanted to create a few new columns using the existing columns in order to perform some calculations.
    But now the mapping is giving an error at time of deployment(Null pointer exception).
    I tried to place the expression operator at various points in the mapping, but to no avail.
    Can some one please help me out regarding this issue.
    Thanks

    Hey,
    This is the stack trace error I am getting when I try to deploy the mapping.
    VLD-1141: Internal error during mapping generation.
    java.lang.NullPointerException
    at oracle.wh.service.impl.mapping.component.pivot.PivotSqlDelegate.prepareOutputContext(PivotSqlDelegate.java:124)
    at oracle.wh.service.impl.mapping.generation.WBMappingGenerator.generate(WBMappingGenerator.java:239)
    at oracle.wh.service.impl.mapping.generation.PlSqlGenerationMediator.assembleSetBasedInternal(PlSqlGenerationMediator.java:2107)
    at oracle.wh.service.impl.mapping.generation.PlSqlGenerationMediator.assembleSetBased(PlSqlGenerationMediator.java:2089)
    at oracle.wh.service.impl.mapping.generation.PlSqlGenerationMediator.assemble(PlSqlGenerationMediator.java:540)
    at oracle.wh.service.impl.mapping.generation.WBMappingGenerator.generate(WBMappingGenerator.java:770)
    at oracle.wh.service.impl.mapping.generation.WBMappingGenerator.generate(WBMappingGenerator.java:316)
    at oracle.wh.service.impl.mapping.generation.WBDeployableMappingGenerator.generate(WBDeployableMappingGenerator.java:99)
    at oracle.wh.service.impl.generation.common.WBGenerationService.generateCode(WBGenerationService.java:433)
    at oracle.wh.service.impl.generation.common.WBGenerationService.generateCode(WBGenerationService.java:311)
    at oracle.wh.service.impl.generation.service.WhValidationGenerationTransaction.run(WhValidationGenerationTransaction.java:241)

  • Drag And Drop operations do not call custom IRM Protector

    We are developing our own custom IRM Protector, 
    So far we have successfuly integrated our IRM Protector into Sharepoint, and download operations and upload operations do protect and unprotect documents. Also move operations between libraries, through Send To ribbon action, call HrProtect and HrUnprotect
    methods as needed. 
    However, in our test environments, when using drag and drop operations between Libraries or folders, the IRM Protector is not being called at all. We have tried to update our test environments to the latest Cumulative Update, without success. Is there any
    known bug around the drag and drop functionality? 
    If true, Drag and Drop suposes a great security threat, and we cannot deliver our protection product to our customers, as it would mean document protections could be bypassed by a simple sharepoint operation.
    Thanks,

    We are developing our own custom IRM Protector, 
    So far we have successfuly integrated our IRM Protector into Sharepoint, and download operations and upload operations do protect and unprotect documents. Also move operations between libraries, through Send To ribbon action, call HrProtect and HrUnprotect
    methods as needed. 
    However, in our test environments, when using drag and drop operations between Libraries or folders, the IRM Protector is not being called at all. We have tried to update our test environments to the latest Cumulative Update, without success. Is there any
    known bug around the drag and drop functionality? 
    If true, Drag and Drop suposes a great security threat, and we cannot deliver our protection product to our customers, as it would mean document protections could be bypassed by a simple sharepoint operation.
    Thanks,

  • Operator - and =

    hello everybody
    i wanted to ask what's the diffrence between the -> operator and the => operator
    thank you
    amit

    Hi Amit,
    '=>'  is GT.
    ' -> '  is used to refer the elements of an object.
    Reward if useful.

  • Name and Address operator's packge do not have any values

    Hi All,
    I am using the Name and Address operator, but I do not have/want the 3rd party vendor's connector/tool/data library to work with my OWB.
    I developed the map and deployed that map into my target.
    Package got generated of name NAME_ADDRESS
    In this package the entry point is the MAIN function, in the main function taking one parameter p_env.
    When I execute the Package from SQL*Plus I am getting the value of p_env, which is wrong, p_env can not be NULL/0 at any case.
    All I want is, how to pass/populate the value into p_env parameter, there will be more than one value into that parameter, param_value varchar2(30)and param_name varchar2(4000).
    But I know nothing about what are the values may be in , when I execute the package...
    ALSO I AM ATTACHING SOME MORE DETAILS....
    create or replace package
    FUNCTION Main(p_env IN WB_RT_MAPAUDIT.WB_RT_NAME_VALUES) RETURN NUMBER IS
    end package
    In this main function, the p_env is getting Initialize, it calls the initialize
    procedure, there directly getting count on this parameter.
    my question is at what point of time these valiables get initialize and what
    are the exact details for the followings
    TYPE WB_RT_NAME_VALUE IS RECORD
    param_name varchar2(30),
    param_value varchar2(4000)
    TYPE WB_RT_NAME_VALUES IS TABLE OF
    WB_RT_NAME_VALUE
    INDEX BY BINARY_INTEGER;
    What are these two variables (param_name and param_value) implies in wb_rt_mapaudit package
    ANY HELP GREATLY APPRECIATED
    THANKS FOR YOUR TIME
    Gladson
    [email protected]

    Gladson,
    Page 8-73 of the Warehouse Builder user's guide explicitly highlights the following section:
    Note: Taking advantage of the Name and Address operator requires separate licensing and additional installation steps. Refer to the Oracle9i Warehouse Builder Installation and Configuration Guide for more information.
    The functionality that does the parsing and standardization is not part of Warehouse Builder, but part of the package that the software partner brings in. If you think about that, it actually makes sense. Would you expect Warehouse Builder to contain the code to perform this action for all countries across the globe, in all different languages and the like? The data vendors, who are the experts in the different areas, know this information.
    So, if all you want to do, is parse and standardize an address, then yes, you may be better of going directly to a partner (having said that, you may get a discount if you are a Warehouse Builder customer, but that I do not know for sure).
    However, what does Warehouse Builder add:
    - Data object design (maybe your target tables don't exist) and deployment
    - ETL design and code generation
    - Process flow creation and deployment
    - Execution management (automatic logging etc)
    - Integration with Discoverer
    - Metadata management, such as impact analysis, version management, multi language support...
    - Much, much more.
    Specific to name and address (or say data quality): if you include the name and address operator on a Warehouse Builder mapping, then you can plug in any partner library you want, and in case you find out that another partner delivers better results, then go with the other partner. At the end of the day, you abstracted the implementation from the design. That makes you much more flexible in your choice of a data vendor. Besides, you get impact analysis, lineage and lots of other metadata management features for free. On top of that, if you want to identify duplicates, perform householding and the like, then there is match and merge (which yes, is part of the tool and not a third-party implementation) in order to define the rules for matching and merging.
    Again, if you don't need any of that, then perhaps you don't want the overhead of having all this and you go directly to a data vendor.
    Hope this helps,
    Mark.

Maybe you are looking for

  • Problems with reinstall Creative Suite CS4 win7 64

    Windows 7 64bit (I'm from germany, please talk nerdy with me for understanding) yesterday: installed programs: cs4 creative suite cs 6 photoshop reason for deinstall cs4 creative suite: i need onl PS CS6 and not PS CS4 anymore. need place at C: my ta

  • Working directly from time capsule

    Does any one have any experience working on files located on a Time Capsule through the ethernet connection? Especially with video software. We are adding a second work station to our small video company. A simple and cheap way for two people to have

  • Custom Adaptor Module on Soap Receiver

    Hi All, In PI 7.1.1 I have a soap receiver communication channel with a call to a simple custom adaptor module before and after the call to the XISoapAdaptorBean The call before works displaying the message in the call. It seems that the module is no

  • How to hide  on my iPhone four and iPad mini?

    Every column says just swipe but when I do it on my new iPad it doesn't work! Neither on my iPhone, I'll admit it's jail broken but I don't see how it wouldn't work on my normal iPad I just got yesterday?! Please help!!

  • Currency format and Right Align not working for messagetext in HGrid

    Hi We are dynamically enabling MessageTextinput inside HGrid region, it is Number type and when we set readonly to True it become left align, and currency format also not working, I tried the below various options but nothing is working. Option : 1 O